mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-01 23:45:53 +02:00
Change a warning message to make it consistent with others
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5801 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
0685ec53cc
commit
d2f362e0b1
@ -700,7 +700,7 @@ sub get_configuration( $ ) {
|
|||||||
if ( $line =~ /^([a-zA-Z]\w*)=(.*)$/ ) {
|
if ( $line =~ /^([a-zA-Z]\w*)=(.*)$/ ) {
|
||||||
my ($var, $val) = ($1, $2);
|
my ($var, $val) = ($1, $2);
|
||||||
unless ( exists $capabilities{$var} ) {
|
unless ( exists $capabilities{$var} ) {
|
||||||
warning_message "Unknown capability \"$var\" ignored";
|
warning_message "Unknown capability ($var) ignored";
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -711,9 +711,9 @@ sub get_configuration( $ ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( $config{LOGRATE} || $config{LOGBURST} ) {
|
if ( $config{LOGRATE} || $config{LOGBURST} ) {
|
||||||
$globals{LOGLIMIT} = '-m limit';
|
$globals{LOGLIMIT} = '-m limit';
|
||||||
$globals{LOGLIMIT} .= " --limit $config{LOGRATE}" if $config{LOGRATE};
|
$globals{LOGLIMIT} .= " --limit $config{LOGRATE}" if $config{LOGRATE};
|
||||||
$globals{LOGLIMIT} .= " --limit-burst $config{LOGBURST}" if $config{LOGBURST};
|
$globals{LOGLIMIT} .= " --limit-burst $config{LOGBURST}" if $config{LOGBURST};
|
||||||
} else {
|
} else {
|
||||||
$globals{LOGLIMIT} = '';
|
$globals{LOGLIMIT} = '';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user