diff --git a/config/config.go b/config/config.go index e828f03d..cc7254bb 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 }