mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Actually connect to master instead of checking route availability
This commit is contained in:
parent
c494839c65
commit
9a34fbeba9
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue