diff --git a/common/convert/converter.go b/common/convert/converter.go index 9876e51f..07bff155 100644 --- a/common/convert/converter.go +++ b/common/convert/converter.go @@ -144,6 +144,14 @@ 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 }