From 7bdacf15f52aa05220fc5b145721ca963884bc16 Mon Sep 17 00:00:00 2001 From: one_code Date: Mon, 12 Sep 2022 14:36:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Supplementary=20proxy=20attribut?= =?UTF-8?q?es=20(#31)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagermaid/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pagermaid/config.py b/pagermaid/config.py index 8e7b214..b874849 100644 --- a/pagermaid/config.py +++ b/pagermaid/config.py @@ -55,8 +55,9 @@ class Config: PROXY = None if PROXY_ADDRESS and PROXY_PORT: PROXY = dict( + scheme="socks5", hostname=PROXY_ADDRESS, - port=PROXY_PORT, + port=int(PROXY_PORT) ) GIT_SOURCE = os.environ.get("PGM_GIT_SOURCE", config["git_source"]) GIT_SOURCE = GIT_SOURCE.replace("TeamPGM/PagerMaid_Plugins/", "TeamPGM/PagerMaid_Plugins_Pyro/")