From 403e518261588245969805212cf974a2741c4eca Mon Sep 17 00:00:00 2001 From: snakem982 Date: Tue, 5 Mar 2024 12:39:47 +0800 Subject: [PATCH] fix: vless flow control only supports xtls-rprx-vision --- common/convert/converter.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/convert/converter.go b/common/convert/converter.go index 809aa94f..9b0eedae 100644 --- a/common/convert/converter.go +++ b/common/convert/converter.go @@ -5,6 +5,7 @@ import ( "encoding/base64" "encoding/json" "fmt" + Tvless "github.com/metacubex/mihomo/transport/vless" "net/url" "strconv" "strings" @@ -216,7 +217,10 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) { continue } if flow := query.Get("flow"); flow != "" { - vless["flow"] = strings.ToLower(flow) + if strings.ToLower(flow) != Tvless.XRV { + continue + } + vless["flow"] = Tvless.XRV } proxies = append(proxies, vless)