From ed4a83efe622f2c32fac8dd90da04d18575dacf2 Mon Sep 17 00:00:00 2001 From: Hellojack <106379370+H1JK@users.noreply.github.com> Date: Wed, 24 Aug 2022 15:54:42 +0800 Subject: [PATCH] Fix TLS insecure --- common/dialer/tls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/dialer/tls.go b/common/dialer/tls.go index 5e0e8725..0cd5e85b 100644 --- a/common/dialer/tls.go +++ b/common/dialer/tls.go @@ -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") }