mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-05-13 14:36:43 +00:00
Fix expansion of pre-rule parameter
If the `pre-rule` paramater is used -- i.e. not empty -- it is expanded without a separating whithespace to the next parmeters -- typical `-p ...`. This causes the call of the `iptables` command to fail. Just add a space to separate the expanded variables; the superfluous space in case of an empty pre-role seems tolerable to me.
This commit is contained in:
parent
7bac839603
commit
3d5c5a0337
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ _ipt_check_rules = <_ipt-iter>
|
|||
%(_ipt_check_rule)s
|
||||
<_ipt-done>
|
||||
|
||||
_ipt_chain_rule = <pre-rule><ipt_<type>/_chain_rule>
|
||||
_ipt_chain_rule = <pre-rule> <ipt_<type>/_chain_rule>
|
||||
_ipt_check_rule = <iptables> -C $chain %(_ipt_chain_rule)s
|
||||
_ipt_rule_target = f2b-<name>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue