Explorar o código

Fix TLS insecure (#27)

Hellojack %!s(int64=3) %!d(string=hai) anos
pai
achega
a878256367
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      common/dialer/tls.go

+ 1 - 1
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")
 	}