fix: 修复s5代理不可用的问题

This commit is contained in:
shaw
2025-09-24 19:21:56 +08:00
parent 0a66609c1b
commit b0077cecd7

View File

@@ -38,7 +38,7 @@ class ProxyHelper {
// 根据代理类型创建 Agent
if (proxy.type === 'socks5') {
const socksUrl = `socks5://${auth}${proxy.host}:${proxy.port}`
const socksUrl = `socks5h://${auth}${proxy.host}:${proxy.port}`
const socksOptions = {}
// 设置 IP 协议族(如果指定)