Skip to content

Commit 692f0ae

Browse files
authored
bump TLS version to keep compatibility with chrome
Chrome browser started to deprecate TLS1.0 in 2020. bupming the protocol to 1.2 keeps it alive for an other while.
1 parent a6ddef7 commit 692f0ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SimpleWebSocketServer/SimpleWebSocketServer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ def serveforever(self):
699699
class SimpleSSLWebSocketServer(SimpleWebSocketServer):
700700

701701
def __init__(self, host, port, websocketclass, certfile = None,
702-
keyfile = None, version = ssl.PROTOCOL_TLSv1, selectInterval = 0.1, ssl_context = None):
702+
keyfile = None, version = ssl.PROTOCOL_TLSv1_2, selectInterval = 0.1, ssl_context = None):
703703

704704
SimpleWebSocketServer.__init__(self, host, port,
705705
websocketclass, selectInterval)

0 commit comments

Comments
 (0)