From 81412f52fc35e0f5e129658a2b6ed29e89183e5f Mon Sep 17 00:00:00 2001 From: Franklin-F Date: Wed, 28 May 2025 21:03:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20fetch=5Fproxies4?= =?UTF-8?q?=20=E6=96=B9=E6=B3=95=E4=BB=A5=E4=BB=8E=E6=96=B0=20API=20?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=BB=A3=E7=90=86=20IP=EF=BC=8C=E5=B9=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=20fetch=5Fproxies=20=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E4=BB=A5=E4=BD=BF=E7=94=A8=E6=96=B0=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 35bf632..a128248 100644 --- a/main.py +++ b/main.py @@ -142,7 +142,9 @@ def post_with_retry(url, proxy_name, json_payload=None, data=None, headers=None, data=data, headers=headers, proxies=proxies, - timeout=timeout + timeout=timeout, + allow_redirects=True, # 允许重定向 + verify=False, # 不验证 SSL 证书 ) if resp.status_code == 401 and not token_refreshed: if verbose: