Commit a4c1e828 authored by Yann Leboulanger's avatar Yann Leboulanger

when sending file, try to bind ipv6 first. see #1969

parent 94032704
......@@ -792,6 +792,7 @@ class Socks5Listener(IdleObject):
self.port = port
self.ais = socket.getaddrinfo(None, port, socket.AF_UNSPEC,
socket.SOCK_STREAM, socket.SOL_TCP, socket.AI_PASSIVE)
self.ais.sort(reverse=True) # Try IPv6 first
self.queue_idx = -1
self.idlequeue = idlequeue
self.queue = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment