优化内容:代理设置
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:
|
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):
|
if not proxy or not isinstance(proxy, str):
|
||||||
return proxy
|
return proxy
|
||||||
p = proxy.strip()
|
p = proxy.strip()
|
||||||
|
|||||||
@@ -544,10 +544,10 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label for="proxy">代理(可选,不填则由后端自动读取)</label>
|
<label for="proxy">代理(可选,仅支持带用户名密码的 socks5h)</label>
|
||||||
<input
|
<input
|
||||||
id="proxy"
|
id="proxy"
|
||||||
placeholder="socks5://ip:port 或 socks5://user:pass@ip:port"
|
placeholder="socks5h://user:pass@ip:port"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
/>
|
/>
|
||||||
<button type="button" class="secondary" id="btn-check-proxy" style="margin-top: 6px; padding: 4px 10px; font-size: 12px;">检测代理是否正常</button>
|
<button type="button" class="secondary" id="btn-check-proxy" style="margin-top: 6px; padding: 4px 10px; font-size: 12px;">检测代理是否正常</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user