chore: parse the allowInsecure field for the trojan uri scheme

This commit is contained in:
gVisor bot 2023-03-09 01:31:43 +08:00
parent 4134f7a5bd
commit 48f50b722c

View file

@ -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 != "" {