From de8402ecd56d2fe257eea99ce3cca6b34e5d55bc Mon Sep 17 00:00:00 2001 From: yuzuki999 Date: Sat, 26 Aug 2023 22:48:24 +0800 Subject: [PATCH] fix original config decode for sing --- core/sing/sing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sing/sing.go b/core/sing/sing.go index a38a858..8c50855 100644 --- a/core/sing/sing.go +++ b/core/sing/sing.go @@ -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) }