mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-07-07 13:27:49 +00:00
Fix: rules parse (#568)
This commit is contained in:
parent
d8a771916a
commit
14d5137703
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue