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

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

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

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

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