We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f0e574 commit 28cd0f9Copy full SHA for 28cd0f9
kafka/conn.py
@@ -496,7 +496,7 @@ def _wrap_ssl(self):
496
try:
497
self._sock = self._ssl_context.wrap_socket(
498
self._sock,
499
- server_hostname=self.host,
+ server_hostname=self.host.rstrip("."),
500
do_handshake_on_connect=False)
501
except ssl.SSLError as e:
502
log.exception('%s: Failed to wrap socket in SSLContext!', self)
0 commit comments