add configurable ipv6_testip #263
This commit is contained in:
parent
762c5f2402
commit
658c685a45
1 changed files with 4 additions and 1 deletions
|
@ -98,6 +98,9 @@ class FileServer(ConnectionServer):
|
|||
if config.tor == "always":
|
||||
return True
|
||||
# Test if we can connect to ipv6 address
|
||||
if config.ipv6_testip:
|
||||
ipv6_testip = config.ipv6_testip
|
||||
else:
|
||||
ipv6_testip = "fcec:ae97:8902:d810:6c92:ec67:efb2:3ec5"
|
||||
try:
|
||||
sock = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
|
||||
|
|
Loading…
Reference in a new issue