优化内容:代理设置

This commit is contained in:
Daniel
2026-03-16 22:24:02 +08:00
parent 3b3fac1cee
commit 29c473890a
2 changed files with 3 additions and 3 deletions

View File

@@ -627,7 +627,7 @@ def _proxy_preview_for_log(proxy: str) -> str:
def _normalize_proxy_scheme_to_socks5h(proxy: str) -> str:
"""若代理是隧道地址但用了 http改为 socks5h7006 需 socks5"""
"""若代理是隧道地址但用了 http改为 socks5h7006 需 socks5h)。"""
if not proxy or not isinstance(proxy, str):
return proxy
p = proxy.strip()

View File

@@ -544,10 +544,10 @@
/>
</div>
<div class="field">
<label for="proxy">代理(可选,不填则由后端自动读取</label>
<label for="proxy">代理(可选,仅支持带用户名密码的 socks5h</label>
<input
id="proxy"
placeholder="socks5://ip:port 或 socks5://user:pass@ip:port"
placeholder="socks5h://user:pass@ip:port"
autocomplete="off"
/>
<button type="button" class="secondary" id="btn-check-proxy" style="margin-top: 6px; padding: 4px 10px; font-size: 12px;">检测代理是否正常</button>