mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-30 17:43:32 +00:00
Change connection mode
This commit is contained in:
parent
82b8c7792e
commit
283246a6b8
@ -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...")
|
||||||
|
Loading…
Reference in New Issue
Block a user