mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-15 19:01:19 +01:00
Move and reword an error message
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
f6228ca31b
commit
fe86964fd6
@ -1217,8 +1217,6 @@ sub process_rule1 ( $$$$$$$$$$$$$$$$ ) {
|
||||
$serverport = $3; # Not Empty due to RE
|
||||
$origdstports = $ports;
|
||||
|
||||
fatal_error "Server port ($serverport) not allowed in $action rule" if $actiontype & ACTION;
|
||||
|
||||
if ( $origdstports && $origdstports ne '-' && port_count( $origdstports ) == 1 ) {
|
||||
$origdstports = validate_port( $proto, $origdstports );
|
||||
} else {
|
||||
@ -1272,6 +1270,7 @@ sub process_rule1 ( $$$$$$$$$$$$$$$$ ) {
|
||||
}
|
||||
}
|
||||
} elsif ( $actiontype & ACTION ) {
|
||||
fatal_error "A server port ($serverport) is not allowed in $action rule" if $serverport;
|
||||
$target = $usedactions{$normalized_target}->{name};
|
||||
$loglevel = '';
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user