fix: config export issue

This commit is contained in:
Hiddify
2024-07-30 08:04:59 +02:00
parent 77fe588eae
commit ca350fcc03
4 changed files with 28 additions and 3 deletions

View File

@@ -57,6 +57,7 @@ func ParseConfigContent(contentstr string, debug bool, configOpt *ConfigOptions,
}
newContent, _ := json.MarshalIndent(jsonObj, "", " ")
return patchConfig(newContent, "SingboxParser", configOpt)
}
@@ -113,6 +114,7 @@ func patchConfig(content []byte, name string, configOpt *ConfigOptions) ([]byte,
}
content, _ = json.MarshalIndent(options, "", " ")
fmt.Printf("%s\n", content)
return validateResult(content, name)
}