浏览代码

Fix TLS insecure (#27)

Hellojack 3 年之前
父节点
当前提交
a878256367
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 			serverName = serverAddress
 		}
 		}
 	}
 	}
-	if serverName == "" && options.Insecure {
+	if serverName == "" && !options.Insecure {
 		return nil, E.New("missing server_name or insecure=true")
 		return nil, E.New("missing server_name or insecure=true")
 	}
 	}