remove extra settings that may create some issues

This commit is contained in:
Hiddify
2024-01-27 02:44:08 +01:00
parent b7e0bc0f4a
commit 390f58f535

View File

@@ -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")
}