diff --git a/config/parser.go b/config/parser.go index 36ea04f..16f9b9e 100644 --- a/config/parser.go +++ b/config/parser.go @@ -32,6 +32,11 @@ func ParseConfig(path string, debug bool) ([]byte, error) { if jsonObj["outbounds"] == nil { return nil, fmt.Errorf("[SingboxParser] no outbounds found") } + + jsonObj = map[string]interface{}{ + "outbounds": jsonObj["outbounds"], + } + newContent, _ := json.MarshalIndent(jsonObj, "", " ") return validateResult(newContent, "SingboxParser") }