Merge pull request #2578 from LemonZuo/feat_socks5h

feat: support socks5h scheme for proxy settings
This commit is contained in:
Luis Pater
2026-04-07 09:57:18 +08:00
committed by GitHub
3 changed files with 25 additions and 3 deletions
@@ -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()