chore: Refine converter packet encoding parse

This commit is contained in:
H1JK
2023-01-10 18:25:05 +08:00
parent 0c354c748a
commit d38ceb78c9
2 changed files with 8 additions and 9 deletions

View File

@ -144,14 +144,6 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) {
if encryption := query.Get("encryption"); encryption != "" {
vmess["cipher"] = encryption
}
if packetEncoding := query.Get("packetEncoding"); packetEncoding != "" {
switch packetEncoding {
case "packet":
vmess["packet-addr"] = true
case "xudp":
vmess["xudp"] = true
}
}
proxies = append(proxies, vmess)
continue
}