Fix socks proxy (#921)

* Replace pysocks with python-socks

* Log proxy settings on init

* Rename extra requirement group

Co-authored-by: Tulir Asokan <tulir@maunium.net>

---------

Co-authored-by: Tulir Asokan <tulir@maunium.net>
This commit is contained in:
Nick Mills-Barrett
2023-06-09 15:38:32 +01:00
committed by GitHub
parent 0411affc88
commit fb461109c1
3 changed files with 5 additions and 2 deletions
-2
View File
@@ -14,8 +14,6 @@ RUN apk add --no-cache \
py3-idna \
py3-rsa \
#py3-telethon \ (outdated)
# Optional for socks proxies
py3-pysocks \
py3-pyaes \
# cryptg
py3-cffi \
+2
View File
@@ -208,6 +208,8 @@ class AbstractUser(ABC):
sysversion = self.config["telegram.device_info.system_version"]
appversion = self.config["telegram.device_info.app_version"]
connection, proxy = self._proxy_settings
if proxy:
self.log.debug(f"Using proxy setting: {proxy}")
assert isinstance(session, Session)
+3
View File
@@ -23,3 +23,6 @@ unpaddedbase64>=1,<3
#/sqlite
aiosqlite>=0.16,<0.20
#/proxy
python-socks[asyncio]