forked from extern/shorewall_code
Only issue one 'unreachable' warning per chain.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
6b67f2698d
commit
c653d9ce83
@ -6535,7 +6535,7 @@ sub unreachable_warning( $$ ) {
|
|||||||
my ( $ignore, $chainref ) = @_;
|
my ( $ignore, $chainref ) = @_;
|
||||||
unless ( $ignore ) {
|
unless ( $ignore ) {
|
||||||
if ( $chainref->{complete} ) {
|
if ( $chainref->{complete} ) {
|
||||||
warning_message "Any rules generated by this entry are unreachable and will therefore be discarded";
|
warning_message "Any rules generated by this entry are unreachable and will therefore be discarded" unless $chainref->{unreachable_warned}++;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user