Fix iptables TypeError if state/match/ctstate missing
Completely untested... Fixes #22465
This commit is contained in:
parent
06bcff8d92
commit
3af6ad1687
1 changed files with 0 additions and 2 deletions
|
@ -406,8 +406,6 @@ def construct_rule(params):
|
|||
elif params['ctstate']:
|
||||
append_match(rule, params['ctstate'], 'conntrack')
|
||||
append_csv(rule, params['ctstate'], '--ctstate')
|
||||
else:
|
||||
return False
|
||||
append_match(rule, params['limit'] or params['limit_burst'], 'limit')
|
||||
append_param(rule, params['limit'], '--limit', False)
|
||||
append_param(rule, params['limit_burst'], '--limit-burst', False)
|
||||
|
|
Loading…
Reference in a new issue