Add support for proxy again

This commit is contained in:
Lonami Exo
2018-10-04 17:11:31 +02:00
parent db83709c6b
commit ebde3be820
7 changed files with 65 additions and 35 deletions

View File

@@ -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):