Skip to content

Commit

Permalink
Fix: rules parse (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
bemarkt authored Mar 9, 2020
1 parent d8a7719 commit 14d5137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 14d5137

Please sign in to comment.