mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-27 16:45:19 +00:00
Change connection mode
This commit is contained in:
parent
82b8c7792e
commit
283246a6b8
@ -20,7 +20,7 @@ import asyncio
|
||||
import logging
|
||||
from typing import Optional
|
||||
|
||||
from .transport import TCP, TCPAbridgedO
|
||||
from .transport import TCP, TCPAbridged
|
||||
from ..session.internals import DataCenter
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
@ -41,7 +41,7 @@ class Connection:
|
||||
|
||||
async def connect(self):
|
||||
for i in range(Connection.MAX_CONNECTION_ATTEMPTS):
|
||||
self.protocol = TCPAbridgedO(self.ipv6, self.proxy)
|
||||
self.protocol = TCPAbridged(self.ipv6, self.proxy)
|
||||
|
||||
try:
|
||||
log.info("Connecting...")
|
||||
|
Loading…
Reference in New Issue
Block a user