Only issue one 'unreachable' warning per chain.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-06-08 10:02:19 -07:00
parent 6b67f2698d
commit c653d9ce83

View File

@ -6535,7 +6535,7 @@ sub unreachable_warning( $$ ) {
my ( $ignore, $chainref ) = @_;
unless ( $ignore ) {
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;
}
}