bugfix when binding tunnels
This commit is contained in:
parent
0a98e00aad
commit
3008990e4d
1 changed files with 1 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ class AutoSSHTunnelMonitor(list):
|
||||||
"""Bind autossh process to the related ssh connections, according to the pid"""
|
"""Bind autossh process to the related ssh connections, according to the pid"""
|
||||||
for t in tunnels:
|
for t in tunnels:
|
||||||
for i in autosshs:
|
for i in autosshs:
|
||||||
if i['pid'] == ppid:
|
if i['pid'] == t['autossh_pid']:
|
||||||
# add to the list of tunnels of the AutoSSHInstance instance
|
# add to the list of tunnels of the AutoSSHInstance instance
|
||||||
i['tunnels'] += [t]
|
i['tunnels'] += [t]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue