Commit 57228e38 authored by songlinfeng's avatar songlinfeng
Browse files

fix ini bug

parent ae831b78
......@@ -54,7 +54,11 @@ func (b *builder) loadConfig(config string) (*Config, error) {
}
b.logger.Infof("Loading config from %v", config)
cfg, err = ini.Load(config)
cfg, err = ini.LoadSources(ini.LoadOptions{
IgnoreInlineComment: false,
AllowBooleanKeys: true,
PreserveSurroundedQuote: true, // 保留引号
}, config)
if err != nil {
return nil, fmt.Errorf("unable to read config: %v", err)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment