mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-10-03 21:17:54 +00:00
Fix: rules parse (#568)
This commit is contained in:
parent
d8a771916a
commit
14d5137703
1 changed files with 1 additions and 1 deletions
|
@ -376,7 +376,7 @@ func parseRules(cfg *RawConfig, proxies map[string]C.Proxy) ([]C.Rule, error) {
|
||||||
rulesConfig := cfg.Rule
|
rulesConfig := cfg.Rule
|
||||||
|
|
||||||
// remove after 1.0
|
// remove after 1.0
|
||||||
if len(rules) == 0 {
|
if len(rulesConfig) == 0 {
|
||||||
rulesConfig = cfg.RuleOld
|
rulesConfig = cfg.RuleOld
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue