diff --git a/utils/websocket.py b/utils/websocket.py index 37b69c868a59e50ba95ed28c86dbcf05efea68c0..d022f0fccb6149a28c551df06e7341fb91fb2bc6 100644 --- a/utils/websocket.py +++ b/utils/websocket.py @@ -580,7 +580,7 @@ Sec-WebSocket-Accept: %s\r sock.send(s2b(self.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 if not ssl: raise self.EClose("SSL connection but no 'ssl' module")