From 77f725afb61d7a05b13936d61abe3577a1bdbbda Mon Sep 17 00:00:00 2001 From: gVisor bot 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 f3d1de077e9d1cd82b2b49067f17473fec6cecdd Mon Sep 17 00:00:00 2001 From: gVisor bot 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