Actually connect to master instead of checking route availability

This commit is contained in:
Ivan Babrou 2017-02-09 17:09:40 -08:00
parent c494839c65
commit 9a34fbeba9
No known key found for this signature in database
GPG key ID: DBF6C142408CB4F0

View file

@ -742,7 +742,7 @@ def dns_check(addr, port, safe=False, ipv6=None):
candidate_addr = ip_bracket(h[4][0])
s = socket.socket(h[0], socket.SOCK_DGRAM)
s = socket.socket(h[0], socket.SOCK_STREAM)
try:
s.connect((candidate_addr.strip('[]'), port))
s.close()