From 32d575a8c805af7a7adbb0715ea1d1bd1e96d681 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 8 Jun 2010 15:57:45 -0700 Subject: [PATCH] Remove extra logic --- Shorewall/Perl/Shorewall/Chains.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 17eafe294..35ca8a316 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -3703,11 +3703,9 @@ sub load_ipsets() { '', ' if eval $IPSET -S $hack > ${VARDIR}/ipsets.tmp; then' , ' grep -q "^-N" ${VARDIR}/ipsets.tmp && mv -f ${VARDIR}/ipsets.tmp ${VARDIR}/ipsets.save' , - ' fi' ); - } + ' fi', + 'elif [ "$COMMAND" = refresh ]; then' ); - if ( @ipsets ) { - emit ( 'elif [ "$COMMAND" = refresh ]; then' ); emit ( " qt \$IPSET -L $_ -n || \$IPSET -N $_ iphash" ) for @ipsets; }