mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-30 03:23:47 +01:00
Set empty target in rules created via add_irule()
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
e693665be1
commit
f2c9647579
@ -1032,6 +1032,8 @@ sub push_irule( $$$;@ ) {
|
|||||||
$ruleref->{jump} = $jump;
|
$ruleref->{jump} = $jump;
|
||||||
$ruleref->{target} = $target;
|
$ruleref->{target} = $target;
|
||||||
$ruleref->{targetopts} = $targetopts if $targetopts;
|
$ruleref->{targetopts} = $targetopts if $targetopts;
|
||||||
|
} else {
|
||||||
|
$ruleref->{target} = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $comment ) {
|
if ( $comment ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user