change socks5 client to add tls auth method if auth configured

This commit is contained in:
VanyM
2022-11-25 17:22:18 +04:00
committed by ginuerzh
parent d76ded14f2
commit dbae70232c

View File

@ -61,6 +61,9 @@ func (c *socks5Connector) Init(md md.Metadata) (err error) {
InsecureSkipVerify: true, InsecureSkipVerify: true,
} }
} }
if selector.User != nil {
selector.methods = append(selector.methods, socks.MethodTLSAuth)
}
} }
c.selector = selector c.selector = selector