mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-23 06:38:53 +01:00
Allow :random to work with REDIRECT
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
8959245375
commit
4e33efd8a6
@ -1072,7 +1072,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