mirror of
https://github.com/xcat2/confluent.git
synced 2025-07-24 05:11:14 +00:00
Fix when networkmanager breaks one of our connections
This usually happens with ipv6 link local used in initramfs stage, after networkmanager may mutilate the ipv6 connectivity.
This commit is contained in:
@@ -316,7 +316,10 @@ if __name__ == '__main__':
|
||||
srvs, _ = apiclient.scan_confluents()
|
||||
doneidxs = set([])
|
||||
for srv in srvs:
|
||||
s = socket.create_connection((srv, 443))
|
||||
try:
|
||||
s = socket.create_connection((srv, 443))
|
||||
except socket.error:
|
||||
continue
|
||||
myname = s.getsockname()
|
||||
s.close()
|
||||
if len(myname) == 4:
|
||||
|
Reference in New Issue
Block a user