From 8e6989758eb6bacc323371cb03f55eef08ea2d03 Mon Sep 17 00:00:00 2001 From: ag2s20150909 Date: Tue, 3 Jan 2023 22:33:29 +0800 Subject: [PATCH] fix converter error --- common/convert/converter.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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