mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Make IPv4 mandatory in session files
This commit is contained in:
@@ -323,7 +323,7 @@ async def connect(self: 'TelegramClient') -> None:
|
||||
self._sender.auth_key.key = dc.auth
|
||||
|
||||
if not await self._sender.connect(self._connection(
|
||||
str(ipaddress.ip_address(dc.ipv6 or dc.ipv4)),
|
||||
str(ipaddress.ip_address((self._use_ipv6 and dc.ipv6) or dc.ipv4)),
|
||||
dc.port,
|
||||
dc.id,
|
||||
loggers=self._log,
|
||||
|
Reference in New Issue
Block a user