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