diff options
author | engn33r <engn33r@users.noreply.github.com> | 2021-05-31 18:36:03 -0400 |
---|---|---|
committer | engn33r <engn33r@users.noreply.github.com> | 2021-05-31 18:36:03 -0400 |
commit | 27d97b8e5254431825e3a288f0c2a80c89555333 (patch) | |
tree | 0288b52da38209fe61c10bc7c3bff51485335cb3 | |
parent | b0906644709906cceccf658f28f78246c2ac8687 (diff) | |
parent | 2719f899a6e7f629c76f45647797f4903fa4b925 (diff) | |
download | websocket-client-27d97b8e5254431825e3a288f0c2a80c89555333.tar.gz |
Merge branch 'master' of github.com:websocket-client/websocket-client
-rw-r--r-- | websocket/_http.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/websocket/_http.py b/websocket/_http.py index 9c009e9..e276b4a 100644 --- a/websocket/_http.py +++ b/websocket/_http.py @@ -248,6 +248,9 @@ def _ssl_socket(sock, user_sslopt, hostname): and user_sslopt.get('ca_cert_path', None) is None: sslopt['ca_cert_path'] = certPath + if sslopt.get('server_hostname', None): + hostname = sslopt['server_hostname'] + check_hostname = sslopt["cert_reqs"] != ssl.CERT_NONE and sslopt.pop( 'check_hostname', True) sock = _wrap_sni_socket(sock, sslopt, hostname, check_hostname) |