Merge pull request #1 from ag2s20150909/fixConverter

fix converter error
This commit is contained in:
ag2s20150909 2023-01-03 22:36:38 +08:00 committed by GitHub
commit 908d0b0007
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,8 +162,11 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) {
if jsonDc.Decode(&values) != nil { if jsonDc.Decode(&values) != nil {
continue continue
} }
tempName,ok:=values["ps"].(string)
name := uniqueName(names, values["ps"].(string)) if !ok{
continue
}
name := uniqueName(names, tempName)
vmess := make(map[string]any, 20) vmess := make(map[string]any, 20)
vmess["name"] = name vmess["name"] = name