feat: support socks5h scheme for proxy settings

This commit is contained in:
Lemon
2026-04-07 07:46:11 +08:00
parent ada8e2905e
commit 163d68318f
3 changed files with 25 additions and 3 deletions

View File

@@ -734,7 +734,7 @@ func newProxyAwareWebsocketDialer(cfg *config.Config, auth *cliproxyauth.Auth) *
}
switch setting.URL.Scheme {
case "socks5":
case "socks5", "socks5h":
var proxyAuth *proxy.Auth
if setting.URL.User != nil {
username := setting.URL.User.Username()