mirror of
https://github.com/6dylan6/jdpro.git
synced 2025-12-14 12:40:39 +00:00
claude是sb,还得自己改
This commit is contained in:
parent
0791380bf5
commit
61cc62d89a
@ -47,8 +47,9 @@ def get_proxy_api(proxy_url, max_retries=5, timeout=60, retry_delay=1):
|
|||||||
if '@' in proxy_url:
|
if '@' in proxy_url:
|
||||||
# 解析认证信息
|
# 解析认证信息
|
||||||
auth_part, url_part = proxy_url.split('@')
|
auth_part, url_part = proxy_url.split('@')
|
||||||
protocol = url_part.split('://')[0]
|
protocol = auth_part.split('://')[0]
|
||||||
host = url_part.split('://')[1]
|
auth_part = auth_part.split('://')[1]
|
||||||
|
host = url_part
|
||||||
|
|
||||||
# 处理只有 token 的情况
|
# 处理只有 token 的情况
|
||||||
if ':' in auth_part:
|
if ':' in auth_part:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user