1
1
mirror of https://github.com/r4sas/PBinCLI synced 2025-03-12 21:31:19 +00:00
This commit is contained in:
Fabio Manganiello 2025-02-27 21:37:02 +01:00 committed by R4SAS
parent 03bdfe6782
commit 5e9a12ee92

View File

@ -29,7 +29,7 @@ def _config_requests(settings=None, shortener=False):
else: else:
PBinCLIError("Incorrect authorization configuration") PBinCLIError("Incorrect authorization configuration")
if settings["proxy"]: if settings.get("proxy"):
scheme = settings["proxy"].split("://")[0] scheme = settings["proxy"].split("://")[0]
if scheme.startswith("socks"): if scheme.startswith("socks"):
session.proxies.update( session.proxies.update(