3 lass.iptables: fix broken predicate check
This commit is contained in:
parent
83901e1e47
commit
7071151591
@ -124,7 +124,7 @@ let
|
||||
|
||||
buildRule = tn: cn: rule:
|
||||
#target validation test:
|
||||
assert (elemIsIn rule.target ([ "ACCEPT" "REJECT" "DROP" "QUEUE" "LOG" "RETURN" ] ++ ts."${tn}"."${cn}"));
|
||||
assert (elemIsIn rule.target ([ "ACCEPT" "REJECT" "DROP" "QUEUE" "LOG" "RETURN" ] ++ (attrNames ts."${tn}")));
|
||||
|
||||
#predicate validation test:
|
||||
#maybe use iptables-test
|
||||
|
Loading…
Reference in New Issue
Block a user