Skip to content

Commit b02d8da

Browse files
authored
Remove local socket on tunnel close
1 parent 9ef62fd commit b02d8da

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ssh_tunnel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def create_ssh_tunnel(hostname, local_socket, remote_socket):
3838
finally:
3939
try:
4040
subprocess.run(ssh_tunnel_terminate_cmd)
41+
os.remove(local_socket)
4142
except subprocess.CalledProcessError:
4243
pass
4344

0 commit comments

Comments
 (0)