fixed ssl socket bug

This commit is contained in:
liris
2015-04-01 12:17:11 +09:00
parent 802bc13ee8
commit 4417e1dffe
4 changed files with 7 additions and 2 deletions

View File

@@ -1,6 +1,10 @@
ChangeLog ChangeLog
============ ============
- 0.29.0
- fixed ssl socket bug
- 0.28.0 - 0.28.0
- Fix erroneous argument shadowing(#168) - Fix erroneous argument shadowing(#168)

View File

@@ -1,7 +1,7 @@
from setuptools import setup from setuptools import setup
import sys import sys
VERSION = "0.28.0" VERSION = "0.29.0"
NAME="websocket_client" NAME="websocket_client"
install_requires = ["six"] install_requires = ["six"]

View File

@@ -22,4 +22,4 @@ Copyright (C) 2010 Hiroki Ohtani(liris)
from ._core import * from ._core import *
from ._app import WebSocketApp from ._app import WebSocketApp
__version__ = "0.28.0" __version__ = "0.29.0"

View File

@@ -129,6 +129,7 @@ def _ssl_socket(sock, user_sslopt, hostname):
if (sslopt["cert_reqs"] != ssl.CERT_NONE and check_hostname): if (sslopt["cert_reqs"] != ssl.CERT_NONE and check_hostname):
match_hostname(sock.getpeercert(), hostname) match_hostname(sock.getpeercert(), hostname)
return sock
def _tunnel(sock, host, port, auth): def _tunnel(sock, host, port, auth):
debug("Connecting proxy...") debug("Connecting proxy...")