Merge pull request #47821 from jheidbrink/correct_port

Specify the correct port in socket.connect
This commit is contained in:
Nicole Thomas 2018-05-25 16:34:39 -04:00 committed by GitHub
commit 9acb5473ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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