From f671d6a1fdecaf0a83a35cb2e47ad340236a637d Mon Sep 17 00:00:00 2001 From: admin <2833154405@qq.com> Date: Thu, 17 Mar 2022 12:23:50 +0800 Subject: [PATCH 1/2] [Fix] Parse --- config/config.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/config/config.go b/config/config.go index 3171083c..4693d79d 100644 --- a/config/config.go +++ b/config/config.go @@ -28,8 +28,6 @@ import ( "github.com/Dreamacro/clash/dns" "github.com/Dreamacro/clash/log" T "github.com/Dreamacro/clash/tunnel" - - "gopkg.in/yaml.v2" ) // General config @@ -186,8 +184,8 @@ type RawConfig struct { Tun Tun `yaml:"tun"` Experimental Experimental `yaml:"experimental"` Profile Profile `yaml:"profile"` - Proxy []map[string]any `yaml:"proxies"` - ProxyGroup []map[string]any + Proxy []map[string]any `yaml:"proxies"` + ProxyGroup []map[string]any `yaml:"proxy-groups"` Rule []string `yaml:"rules"` Script Script `yaml:"script"` } From ce509295c0210cfceaa7938d752ed130a6ba356d Mon Sep 17 00:00:00 2001 From: admin <2833154405@qq.com> Date: Thu, 17 Mar 2022 12:26:43 +0800 Subject: [PATCH 2/2] [Fix] Parse --- config/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/config.go b/config/config.go index 4693d79d..25504803 100644 --- a/config/config.go +++ b/config/config.go @@ -28,6 +28,8 @@ import ( "github.com/Dreamacro/clash/dns" "github.com/Dreamacro/clash/log" T "github.com/Dreamacro/clash/tunnel" + + "gopkg.in/yaml.v2" ) // General config