🐛 Supplementary proxy attributes (#31)

This commit is contained in:
one_code 2022-09-12 14:36:50 +08:00 committed by GitHub
parent af1961be26
commit 7bdacf15f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,8 +55,9 @@ class Config:
PROXY = None PROXY = None
if PROXY_ADDRESS and PROXY_PORT: if PROXY_ADDRESS and PROXY_PORT:
PROXY = dict( PROXY = dict(
scheme="socks5",
hostname=PROXY_ADDRESS, hostname=PROXY_ADDRESS,
port=PROXY_PORT, port=int(PROXY_PORT)
) )
GIT_SOURCE = os.environ.get("PGM_GIT_SOURCE", config["git_source"]) GIT_SOURCE = os.environ.get("PGM_GIT_SOURCE", config["git_source"])
GIT_SOURCE = GIT_SOURCE.replace("TeamPGM/PagerMaid_Plugins/", "TeamPGM/PagerMaid_Plugins_Pyro/") GIT_SOURCE = GIT_SOURCE.replace("TeamPGM/PagerMaid_Plugins/", "TeamPGM/PagerMaid_Plugins_Pyro/")