mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-07 21:39:53 +01:00
Allow :random to work with REDIRECT
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
598949b8f4
commit
69d7c9bce7
@ -1069,7 +1069,7 @@ sub process_rule1 ( $$$$$$$$$$$$$ ) {
|
|||||||
if ( $dest eq '-' ) {
|
if ( $dest eq '-' ) {
|
||||||
$dest = join( '', $z, '::' , $ports =~ /[:,]/ ? '' : $ports );
|
$dest = join( '', $z, '::' , $ports =~ /[:,]/ ? '' : $ports );
|
||||||
} else {
|
} else {
|
||||||
$dest = join( '', $z, '::', $dest ) unless $dest =~ /:/;
|
$dest = join( '', $z, '::', $dest ) unless $dest =~ /^[^\d].*:/;
|
||||||
}
|
}
|
||||||
} elsif ( $action eq 'REJECT' ) {
|
} elsif ( $action eq 'REJECT' ) {
|
||||||
$action = 'reject';
|
$action = 'reject';
|
||||||
|
Loading…
Reference in New Issue
Block a user