Fix: unsupported rule should throw error
This commit is contained in:
parent
e103040158
commit
e48ccdd4c8
@ -482,6 +482,8 @@ func parseRules(cfg *rawConfig, proxies map[string]C.Proxy) ([]C.Rule, error) {
|
|||||||
// deprecated when bump to 1.0
|
// deprecated when bump to 1.0
|
||||||
case "FINAL":
|
case "FINAL":
|
||||||
parsed = R.NewMatch(target)
|
parsed = R.NewMatch(target)
|
||||||
|
default:
|
||||||
|
parseErr = fmt.Errorf("unsupported rule type %s", rule[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
if parseErr != nil {
|
if parseErr != nil {
|
||||||
|
Reference in New Issue
Block a user