mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-21 23:43:18 +01:00
Stop using SO_REUSEADDR on sockets
This commit is contained in:
parent
fc08fb4086
commit
f27b27b0e8
@ -160,13 +160,11 @@ class MultiListener:
|
||||
self.bind_called = True
|
||||
if address_v6 is not None:
|
||||
self.v6 = socket.socket(socket.AF_INET6, self.type, self.proto)
|
||||
self.v6.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
self.v6.bind(address_v6)
|
||||
else:
|
||||
self.v6 = None
|
||||
if address_v4 is not None:
|
||||
self.v4 = socket.socket(socket.AF_INET, self.type, self.proto)
|
||||
self.v4.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
self.v4.bind(address_v4)
|
||||
else:
|
||||
self.v4 = None
|
||||
|
Loading…
Reference in New Issue
Block a user