mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-08 19:54:12 +08:00
Fix TLS insecure
This commit is contained in:
parent
553f78ed55
commit
ed4a83efe6
@ -32,7 +32,7 @@ func TLSConfig(serverAddress string, options option.OutboundTLSOptions) (*tls.Co
|
||||
serverName = serverAddress
|
||||
}
|
||||
}
|
||||
if serverName == "" && options.Insecure {
|
||||
if serverName == "" && !options.Insecure {
|
||||
return nil, E.New("missing server_name or insecure=true")
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user