fix converter error
This commit is contained in:
parent
29b72df14c
commit
8e6989758e
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue