优化内容:代理设置
This commit is contained in:
@@ -627,7 +627,7 @@ def _proxy_preview_for_log(proxy: str) -> str:
|
||||
|
||||
|
||||
def _normalize_proxy_scheme_to_socks5h(proxy: str) -> str:
|
||||
"""若代理是隧道地址但用了 http,改为 socks5h(7006 需 socks5)。"""
|
||||
"""若代理是隧道地址但用了 http,改为 socks5h(7006 需 socks5h)。"""
|
||||
if not proxy or not isinstance(proxy, str):
|
||||
return proxy
|
||||
p = proxy.strip()
|
||||
|
||||
Reference in New Issue
Block a user