Skip to content

Commit

Permalink
Strip trailing dot off hostname. (dpkp#133)
Browse files Browse the repository at this point in the history
Co-authored-by: Dave Voutila <[email protected]>
  • Loading branch information
wbarnha and voutilad authored Mar 10, 2024
1 parent 88763da commit b1a4c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kafka/conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def _wrap_ssl(self):
try:
self._sock = self._ssl_context.wrap_socket(
self._sock,
server_hostname=self.host,
server_hostname=self.host.rstrip("."),
do_handshake_on_connect=False)
except ssl.SSLError as e:
log.exception('%s: Failed to wrap socket in SSLContext!', self)
Expand Down

0 comments on commit b1a4c53

Please sign in to comment.