mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-01-03 20:49:02 +01:00
Also register por for dns proxy and for pairs in use by other procs
This commit is contained in:
parent
6cdc4da1e4
commit
4e8c5411b5
@ -684,6 +684,7 @@ def main(listenip_v6, listenip_v4,
|
||||
except socket.error as e:
|
||||
if e.errno == errno.EADDRINUSE:
|
||||
last_e = e
|
||||
used_ports.append(port)
|
||||
else:
|
||||
raise e
|
||||
|
||||
@ -724,10 +725,12 @@ def main(listenip_v6, listenip_v4,
|
||||
try:
|
||||
dns_listener.bind(lv6, lv4)
|
||||
bound = True
|
||||
used_ports.append(port)
|
||||
break
|
||||
except socket.error as e:
|
||||
if e.errno == errno.EADDRINUSE:
|
||||
last_e = e
|
||||
used_ports.append(port)
|
||||
else:
|
||||
raise e
|
||||
debug2('\n')
|
||||
|
Loading…
Reference in New Issue
Block a user