Update telethon/network/connection/tcpmtproxy.py

Co-authored-by: Lonami <totufals@hotmail.com>
This commit is contained in:
Confused Character 2024-02-16 20:20:24 +03:30 committed by GitHub
parent 524ef32d37
commit 7e204a15d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,7 +100,7 @@ class TcpMTProxy(ObfuscatedConnection):
def __init__(self, ip, port, dc_id, *, loggers, proxy=None, local_addr=None):
# connect to proxy's host and port instead of telegram's ones
proxy_host, proxy_port = self.address_info(proxy)
self._secret = TcpMTProxy.normilize_secret(proxy[2])
self._secret = self.normalize_secret(proxy[2])
super().__init__(
proxy_host, proxy_port, dc_id, loggers=loggers)