fix: crash

This commit is contained in:
Hiddify
2024-06-01 17:16:36 +02:00
parent 182e06e2e2
commit 54853793f3
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ func ParseConfig(path string, debug bool) ([]byte, error) {
if err != nil {
return nil, err
}
return ParseConfigContent(string(content), debug, nil, false)
return ParseConfigContent(string(content), debug, DefaultConfigOptions(), false)
}
func ParseConfigContent(contentstr string, debug bool, configOpt *ConfigOptions, fullConfig bool) ([]byte, error) {
content := []byte(contentstr)