mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 03:22:29 +00:00
Add support for proxy again
This commit is contained in:
@@ -8,8 +8,8 @@ class ConnectionTcpIntermediate(Connection):
|
||||
Intermediate mode between `ConnectionTcpFull` and `ConnectionTcpAbridged`.
|
||||
Always sends 4 extra bytes for the packet length.
|
||||
"""
|
||||
async def connect(self, timeout=None):
|
||||
await super().connect(timeout=timeout)
|
||||
async def connect(self, timeout=None, ssl=None):
|
||||
await super().connect(timeout=timeout, ssl=ssl)
|
||||
await self.send(b'\xee\xee\xee\xee')
|
||||
|
||||
def _send(self, data):
|
||||
|
Reference in New Issue
Block a user