mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-20 01:00:56 +00:00
fix: vless flow control only supports xtls-rprx-vision
This commit is contained in:
parent
974332c0cc
commit
403e518261
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue