Add TLS version debug info
This commit is contained in:
parent
1c55bf7d4b
commit
23b9555929
|
@ -290,6 +290,8 @@ class receiveDataThread(threading.Thread):
|
||||||
try:
|
try:
|
||||||
self.sslSock.do_handshake()
|
self.sslSock.do_handshake()
|
||||||
logger.debug("TLS handshake success")
|
logger.debug("TLS handshake success")
|
||||||
|
if sys.version_info >= (2, 7, 9):
|
||||||
|
logger.debug("TLS protocol version: %s", self.sslSock.version())
|
||||||
break
|
break
|
||||||
except ssl.SSLError as e:
|
except ssl.SSLError as e:
|
||||||
if sys.hexversion >= 0x02070900:
|
if sys.hexversion >= 0x02070900:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user