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
2 people authored and bradenneal1 committed May 16, 2024
1 parent e128e46 commit 56c579f
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 56c579f

Please sign in to comment.