From 18dac19d8698db448f44f6048fff7e7fa75c7322 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 3 Mar 2016 14:09:55 -0800 Subject: [PATCH] Remove dead code from save_dynamic_chains() Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 57313c175..fb58bd4ad 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -8153,21 +8153,6 @@ EOF emit <<"EOF"; rm -f \${VARDIR}/.UPnP rm -f \${VARDIR}/.forwardUPnP -EOF - - if ( have_capability 'IPTABLES_S' ) { - emit( qq(if [ "\$COMMAND" = stop -o "\$COMMAND" = clear ]; then), - qq( if chain_exists dynamic; then), - qq( $tool -S dynamic | tail -n +2 > \${VARDIR}/.dynamic) ); - } else { - emit( qq(if [ "\$COMMAND" = stop -o "\$COMMAND" = clear ]; then), - qq( if chain_exists dynamic; then), - qq( $utility -t filter | grep '^-A dynamic ' > \${VARDIR}/.dynamic) ); - } - -emit <<"EOF"; - fi -fi EOF emit( '' ), save_docker_rules( $tool ) if $config{DOCKER};