2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 02:52:07 +00:00

Restore link local cert in apiclient

This commit is contained in:
Jarrod Johnson 2023-01-27 09:13:47 -05:00
parent 1777223232
commit 02e242ec4e

View File

@ -315,7 +315,8 @@ class HTTPSClient(client.HTTPConnection, object):
psock = socket.socket(addrinf[0])
psock.settimeout(timeo)
psock.connect(addrinf[4])
ctx.wrap_socket(psock, server_hostname=host)
chost = host.split('%', 1)[0]
ctx.wrap_socket(psock, server_hostname=chost)
foundsrv = host
psock.close()
break
@ -323,6 +324,8 @@ class HTTPSClient(client.HTTPConnection, object):
continue
except ssl.SSLError:
continue
except ssl.CertificateError:
continue
else:
continue
break