From 824180e6f8cfde57fc253bea978a2f956fe2f1fe Mon Sep 17 00:00:00 2001 From: teastep Date: Tue, 27 Mar 2007 01:13:18 +0000 Subject: [PATCH] Cosmetic improvements to the generated code git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5711 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- New/compiler.pl | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/New/compiler.pl b/New/compiler.pl index 8ab72dc46..6d722614d 100755 --- a/New/compiler.pl +++ b/New/compiler.pl @@ -340,7 +340,8 @@ stop_firewall() { setpolicy FORWARD DROP - deleteallchains"; + deleteallchains +"; for my $hosts ( @$criticalhosts ) { my ( $interface, $host ) = ( split /:/, $hosts ); @@ -357,14 +358,16 @@ stop_firewall() { for chain in INPUT FORWARD; do setcontinue \$chain - done"; + done +"; } } elsif ( ! $config{ADMINISABSENTMINDED} ) { emit "for chain in INPUT OUTPUT FORWARD; do setpolicy \$chain DROP done - deleteallchains" + deleteallchains +" } else { emit "for chain in INPUT FORWARD; do setpolicy \$chain DROP @@ -376,7 +379,8 @@ stop_firewall() { for chain in INPUT FORWARD; do setcontinue \$chain - done"; + done +"; } push_indent;