chore: parse the allowInsecure field for the trojan uri scheme

This commit is contained in:
metacubex 2023-03-09 01:31:43 +08:00
parent 921b2c3aa4
commit 0c984644b4

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