diff --git a/common/convert/converter.go b/common/convert/converter.go index 24043a41..1b0e8cf3 100644 --- a/common/convert/converter.go +++ b/common/convert/converter.go @@ -162,8 +162,11 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) { if jsonDc.Decode(&values) != nil { continue } - - name := uniqueName(names, values["ps"].(string)) + tempName,ok:=values["ps"].(string) + if !ok{ + continue + } + name := uniqueName(names, tempName) vmess := make(map[string]any, 20) vmess["name"] = name