mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #47821 from jheidbrink/correct_port
Specify the correct port in socket.connect
This commit is contained in:
commit
9acb5473ef
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user