Fix: rules parse (#568)

This commit is contained in:
gVisor bot 2020-03-09 10:40:21 +08:00
parent a957540ce5
commit 2193e571e1

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
}