mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 18:08:14 -05:00
fix original config decode for sing
This commit is contained in:
parent
1aa0b2a8e1
commit
de8402ecd5
@ -48,7 +48,7 @@ func New(c *conf.CoreConfig) (vCore.Core, error) {
|
|||||||
return nil, fmt.Errorf("open original config error: %s", err)
|
return nil, fmt.Errorf("open original config error: %s", err)
|
||||||
}
|
}
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
err = json.NewDecoder(f).Decode(options)
|
err = json.NewDecoder(f).Decode(&options)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("decode original config error: %s", err)
|
return nil, fmt.Errorf("decode original config error: %s", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user