Compatibility with IPv6 based interfaces
This commit is contained in:
parent
2e0dd278b6
commit
3d49076602
@ -58,6 +58,7 @@ class UDPInterface(Interface):
|
|||||||
|
|
||||||
self.owner = owner
|
self.owner = owner
|
||||||
address = (self.bind_ip, self.bind_port)
|
address = (self.bind_ip, self.bind_port)
|
||||||
|
socketserver.UDPServer.address_family = socket.AF_INET
|
||||||
self.server = socketserver.UDPServer(address, handlerFactory(self.processIncoming))
|
self.server = socketserver.UDPServer(address, handlerFactory(self.processIncoming))
|
||||||
|
|
||||||
thread = threading.Thread(target=self.server.serve_forever)
|
thread = threading.Thread(target=self.server.serve_forever)
|
||||||
|
Loading…
Reference in New Issue
Block a user