Support python 3 with SSL/TLS connections.
Need to detect leading TLS/SSL character by number too for python 3.
This commit is contained in:
parent
008a5118e7
commit
d5c94db054
|
|
@ -586,7 +586,7 @@ Sec-WebSocket-Accept: %s\r
|
||||||
sock.send(s2b(self.policy_response))
|
sock.send(s2b(self.policy_response))
|
||||||
raise self.EClose("Sending flash policy response")
|
raise self.EClose("Sending flash policy response")
|
||||||
|
|
||||||
elif handshake[0] in ("\x16", "\x80"):
|
elif handshake[0] in ("\x16", "\x80", 22, 128):
|
||||||
# SSL wrap the connection
|
# SSL wrap the connection
|
||||||
if not ssl:
|
if not ssl:
|
||||||
raise self.EClose("SSL connection but no 'ssl' module")
|
raise self.EClose("SSL connection but no 'ssl' module")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue