From 14d51377039c7fd3640adaec9b26996e10eb9b94 Mon Sep 17 00:00:00 2001 From: Ti Date: Mon, 9 Mar 2020 10:40:21 +0800 Subject: [PATCH] Fix: rules parse (#568) --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index e828f03d7..cc7254bb4 100644 --- a/config/config.go +++ b/config/config.go @@ -376,7 +376,7 @@ func parseRules(cfg *RawConfig, proxies map[string]C.Proxy) ([]C.Rule, error) { rulesConfig := cfg.Rule // remove after 1.0 - if len(rules) == 0 { + if len(rulesConfig) == 0 { rulesConfig = cfg.RuleOld }