Fix: rules parse (#568)

This commit is contained in:
Ti 2020-03-09 10:40:21 +08:00 committed by GitHub
parent d8a771916a
commit 14d5137703
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}