From 0c984644b46de51876f809d2211bb60448fed503 Mon Sep 17 00:00:00 2001 From: metacubex Date: Thu, 9 Mar 2023 01:31:43 +0800 Subject: [PATCH] chore: parse the allowInsecure field for the trojan uri scheme --- common/convert/converter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/convert/converter.go b/common/convert/converter.go index 7d896d536..abd07a943 100644 --- a/common/convert/converter.go +++ b/common/convert/converter.go @@ -83,7 +83,7 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) { trojan["port"] = urlTrojan.Port() trojan["password"] = urlTrojan.User.Username() trojan["udp"] = true - trojan["skip-cert-verify"] = false + trojan["skip-cert-verify"], _ = strconv.ParseBool(query.Get("allowInsecure")) sni := query.Get("sni") if sni != "" {