mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Fix alternative connection modes
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import os
|
||||
|
||||
from .connection import Connection
|
||||
from .tcpabridged import ConnectionTcpAbridged
|
||||
from ...crypto import AESModeCTR
|
||||
|
||||
@@ -48,4 +47,5 @@ class ConnectionTcpObfuscated(ConnectionTcpAbridged):
|
||||
self._aes_decrypt = AESModeCTR(decrypt_key, decrypt_iv)
|
||||
|
||||
random[56:64] = self._aes_encrypt.encrypt(bytes(random))[56:64]
|
||||
await self._send(random)
|
||||
self._writer.write(random)
|
||||
await self._writer.drain()
|
||||
|
Reference in New Issue
Block a user