mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-05-02 23:03:42 +03:00
Add missing local_addr to proxy connection, bump version
Bug introduced by #1587.
This commit is contained in:
parent
f450682a22
commit
d9ddf8858e
|
@ -95,7 +95,7 @@ class TcpMTProxy(ObfuscatedConnection):
|
||||||
obfuscated_io = MTProxyIO
|
obfuscated_io = MTProxyIO
|
||||||
|
|
||||||
# noinspection PyUnusedLocal
|
# noinspection PyUnusedLocal
|
||||||
def __init__(self, ip, port, dc_id, *, loggers, proxy=None):
|
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
|
# connect to proxy's host and port instead of telegram's ones
|
||||||
proxy_host, proxy_port = self.address_info(proxy)
|
proxy_host, proxy_port = self.address_info(proxy)
|
||||||
self._secret = bytes.fromhex(proxy[2])
|
self._secret = bytes.fromhex(proxy[2])
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# Versions should comply with PEP440.
|
# Versions should comply with PEP440.
|
||||||
# This line is parsed in setup.py:
|
# This line is parsed in setup.py:
|
||||||
__version__ = '1.17.0'
|
__version__ = '1.17.1'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user