mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-26 09:14:31 +03:00
Fix incorrect check for reserved data prefix in ConnectionTcpObfuscated
This commit is contained in:
parent
de84bf08bf
commit
c39cc06908
|
@ -28,7 +28,7 @@ class ConnectionTcpObfuscated(ConnectionTcpAbridged):
|
|||
keywords = (b'PVrG', b'GET ', b'POST', b'\xee\xee\xee\xee')
|
||||
while True:
|
||||
random = os.urandom(64)
|
||||
if (random[0] != b'\xef' and
|
||||
if (random[0] != 0xef and
|
||||
random[:4] not in keywords and
|
||||
random[4:4] != b'\0\0\0\0'):
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue
Block a user