mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-01-21 05:19:25 +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:
|
except socket.error as e:
|
||||||
if e.errno == errno.EADDRINUSE:
|
if e.errno == errno.EADDRINUSE:
|
||||||
last_e = e
|
last_e = e
|
||||||
|
used_ports.append(port)
|
||||||
else:
|
else:
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
@ -724,10 +725,12 @@ def main(listenip_v6, listenip_v4,
|
|||||||
try:
|
try:
|
||||||
dns_listener.bind(lv6, lv4)
|
dns_listener.bind(lv6, lv4)
|
||||||
bound = True
|
bound = True
|
||||||
|
used_ports.append(port)
|
||||||
break
|
break
|
||||||
except socket.error as e:
|
except socket.error as e:
|
||||||
if e.errno == errno.EADDRINUSE:
|
if e.errno == errno.EADDRINUSE:
|
||||||
last_e = e
|
last_e = e
|
||||||
|
used_ports.append(port)
|
||||||
else:
|
else:
|
||||||
raise e
|
raise e
|
||||||
debug2('\n')
|
debug2('\n')
|
||||||
|
Loading…
Reference in New Issue
Block a user