From d49b38b00f03c7c5a2f29fb7f639dcbee46c9461 Mon Sep 17 00:00:00 2001 From: Kr328 Date: Mon, 13 Sep 2021 23:43:28 +0800 Subject: [PATCH] Fix: should not unmarshal to pointer (#1615) --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 824175129..004a935f0 100644 --- a/config/config.go +++ b/config/config.go @@ -22,7 +22,7 @@ import ( R "github.com/Dreamacro/clash/rule" T "github.com/Dreamacro/clash/tunnel" - yaml "gopkg.in/yaml.v2" + "gopkg.in/yaml.v2" ) // General config @@ -188,7 +188,7 @@ func UnmarshalRawConfig(buf []byte) (*RawConfig, error) { }, } - if err := yaml.Unmarshal(buf, &rawCfg); err != nil { + if err := yaml.Unmarshal(buf, rawCfg); err != nil { return nil, err }