Skip to content
Snippets Groups Projects
Commit 765336b4 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent 0492b823
No related branches found
No related tags found
No related merge requests found
......@@ -793,6 +793,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment