feat: 添加 fetch_proxies4 方法以从新 API 获取代理 IP,并更新 fetch_proxies 函数以使用新方法
This commit is contained in:
parent
38562aba60
commit
81412f52fc
4
main.py
4
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user