diff --git a/bebop/protocol.py b/bebop/protocol.py index 1813651..9474002 100644 --- a/bebop/protocol.py +++ b/bebop/protocol.py @@ -85,7 +85,7 @@ class Request: context = Request.get_ssl_context() try: - self.ssock = context.wrap_socket(sock) + self.ssock = context.wrap_socket(sock, server_hostname=hostname) except OSError as exc: self.state = Request.STATE_CONNECTION_FAILED self.error = exc.strerror