diff --git a/config/config.go b/config/config.go index aee3129e..3f4da5aa 100644 --- a/config/config.go +++ b/config/config.go @@ -482,6 +482,8 @@ func parseRules(cfg *rawConfig, proxies map[string]C.Proxy) ([]C.Rule, error) { // deprecated when bump to 1.0 case "FINAL": parsed = R.NewMatch(target) + default: + parseErr = fmt.Errorf("unsupported rule type %s", rule[0]) } if parseErr != nil {