From ffb6ac178e90303095211b0e93e9ada88604908e Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 1 Jun 2020 09:36:00 -0700 Subject: [PATCH] Shorten the disposition in ADD/DEL log messages Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index de01ae3d1..cf8489219 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -2888,6 +2888,7 @@ sub process_rule ( $$$$$$$$$$$$$$$$$$$$ ) { fatal_error "Invalid flags ($flags)" unless defined $flags && $flags =~ /^(dst|src)(,(dst|src)){0,5}$/; $action = join( ' ', 'SET --' . $xlate{$basictarget} , $setname , $flags ); + $log_action = "$basictarget($setname)"; if ( supplied $timeout ) { fatal_error "A timeout may only be supplied in an ADD rule" unless $basictarget eq 'ADD';