change socks5 client to add tls auth method if auth configured

This commit is contained in:
VanyM authored and ginuerzh committed 2022-11-27 19:49:58 +08:00
1 parent d76ded14f2
commit dbae70232c
1 file changed
+3
+3
View File
@@ -61,6 +61,9 @@ func (c *socks5Connector) Init(md md.Metadata) (err error) {
InsecureSkipVerify: true,
}
}
if selector.User != nil {
selector.methods = append(selector.methods, socks.MethodTLSAuth)
}
}
c.selector = selector