change socks5 client to add tls auth method if auth configured
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user