Forráskód Böngészése

Fix TLS insecure (#27)

Hellojack 3 éve
szülő
commit
a878256367
1 módosított fájl, 1 hozzáadás és 1 törlés
  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")
 	}