fix: xray core start multiinstance, add use xray core only

This commit is contained in:
Hiddify
2024-08-06 16:13:23 -04:00
parent 3862808cdb
commit b389963aa8
4 changed files with 7 additions and 8 deletions

View File

@@ -32,6 +32,9 @@ func ParseConfig(path string, debug bool) ([]byte, error) {
return ParseConfigContent(string(content), debug, nil, false)
}
func ParseConfigContent(contentstr string, debug bool, configOpt *ConfigOptions, fullConfig bool) ([]byte, error) {
if configOpt == nil {
configOpt = DefaultConfigOptions()
}
content := []byte(contentstr)
var jsonObj map[string]interface{} = make(map[string]interface{})