mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-22 07:33:43 +01:00
Correct action dport implementation
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
28b92dae32
commit
43ac903085
@ -1033,7 +1033,7 @@ sub add_policy_rules( $$$$$ ) {
|
||||
# Policy action is a regular action -- jump to the action chain
|
||||
#
|
||||
if ( ( my $proto = determine_action_protocol( $action, '-' ) ) ne '-' ) {
|
||||
if ( my $dport = determine_action_dport( $action, $proto, '-' ) ) {
|
||||
if ( my $dport = determine_action_dport( $action, $proto, '' ) ) {
|
||||
add_ijump( $chainref, j => use_policy_action( $paction, $chainref->{name} ), p => $proto, dport => $dport );
|
||||
} else {
|
||||
add_ijump( $chainref, j => use_policy_action( $paction, $chainref->{name} ), p => $proto );
|
||||
|
Loading…
Reference in New Issue
Block a user