fix: parse config issues

This commit is contained in:
Hiddify
2024-08-06 22:45:01 -04:00
parent b389963aa8
commit f31899c269
6 changed files with 9 additions and 4 deletions

View File

@@ -81,7 +81,7 @@ func NewService(options option.Options) (*libbox.BoxService, error) {
return &service, nil
}
func parseConfig(configContent string) (option.Options, error) {
func readOptions(configContent string) (option.Options, error) {
var options option.Options
err := options.UnmarshalJSON([]byte(configContent))
if err != nil {