Fix: should not unmarshal to pointer (#1615)
This commit is contained in:
parent
1835aebf85
commit
68813be155
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ import (
|
||||||
R "github.com/Dreamacro/clash/rule"
|
R "github.com/Dreamacro/clash/rule"
|
||||||
T "github.com/Dreamacro/clash/tunnel"
|
T "github.com/Dreamacro/clash/tunnel"
|
||||||
|
|
||||||
yaml "gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// General config
|
// 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
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue