add tls config option
This commit is contained in:
@ -53,7 +53,7 @@ func (c *socks5Connector) Init(md md.Metadata) (err error) {
|
||||
},
|
||||
logger: c.logger,
|
||||
User: c.options.User,
|
||||
TLSConfig: c.md.tlsConfig,
|
||||
TLSConfig: c.options.TLSConfig,
|
||||
}
|
||||
if !c.md.noTLS {
|
||||
selector.methods = append(selector.methods, socks.MethodTLS)
|
||||
|
@ -1,7 +1,6 @@
|
||||
package v5
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
"time"
|
||||
|
||||
mdata "github.com/go-gost/gost/pkg/metadata"
|
||||
@ -9,7 +8,6 @@ import (
|
||||
|
||||
type metadata struct {
|
||||
connectTimeout time.Duration
|
||||
tlsConfig *tls.Config
|
||||
noTLS bool
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user