From 390f58f535d2133f2ad666d28578f75891f51860 Mon Sep 17 00:00:00 2001 From: Hiddify Date: Sat, 27 Jan 2024 02:44:08 +0100 Subject: [PATCH] remove extra settings that may create some issues --- config/parser.go | 5 +++++ 1 file changed, 5 insertions(+) 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") }