From a8782563674a6f7078890a5c8a9b862f7469d971 Mon Sep 17 00:00:00 2001 From: Hellojack <106379370+H1JK@users.noreply.github.com> Date: Wed, 24 Aug 2022 16:11:41 +0800 Subject: [PATCH] Fix TLS insecure (#27) --- 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") }