Skip to content

Commit

Permalink
Fix: should not unmarshal to pointer (#1615)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr328 authored Sep 13, 2021
1 parent 0c79d12 commit d49b38b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit d49b38b

Please sign in to comment.