fix original config decode for sing

This commit is contained in:
yuzuki999 2023-08-26 22:48:24 +08:00
parent 1aa0b2a8e1
commit de8402ecd5

View File

@ -48,7 +48,7 @@ func New(c *conf.CoreConfig) (vCore.Core, error) {
return nil, fmt.Errorf("open original config error: %s", err)
}
defer f.Close()
err = json.NewDecoder(f).Decode(options)
err = json.NewDecoder(f).Decode(&options)
if err != nil {
return nil, fmt.Errorf("decode original config error: %s", err)
}