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

@@ -9,8 +9,8 @@ class ConnectionTcpAbridged(Connection):
only require 1 byte if the packet length is less than
508 bytes (127 << 2, which is very common).
"""
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'\xef')
def _write(self, data):