Change connection mode

This commit is contained in:
Dan 2023-01-12 18:25:10 +01:00
parent 82b8c7792e
commit 283246a6b8

View File

@ -20,7 +20,7 @@ import asyncio
import logging import logging
from typing import Optional from typing import Optional
from .transport import TCP, TCPAbridgedO from .transport import TCP, TCPAbridged
from ..session.internals import DataCenter from ..session.internals import DataCenter
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
@ -41,7 +41,7 @@ class Connection:
async def connect(self): async def connect(self):
for i in range(Connection.MAX_CONNECTION_ATTEMPTS): for i in range(Connection.MAX_CONNECTION_ATTEMPTS):
self.protocol = TCPAbridgedO(self.ipv6, self.proxy) self.protocol = TCPAbridged(self.ipv6, self.proxy)
try: try:
log.info("Connecting...") log.info("Connecting...")