Cosmetic improvements to the generated code

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5711 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-03-27 01:13:18 +00:00
parent 0c8ffffb10
commit 824180e6f8

View File

@ -340,7 +340,8 @@ stop_firewall() {
setpolicy FORWARD DROP setpolicy FORWARD DROP
deleteallchains"; deleteallchains
";
for my $hosts ( @$criticalhosts ) { for my $hosts ( @$criticalhosts ) {
my ( $interface, $host ) = ( split /:/, $hosts ); my ( $interface, $host ) = ( split /:/, $hosts );
@ -357,14 +358,16 @@ stop_firewall() {
for chain in INPUT FORWARD; do for chain in INPUT FORWARD; do
setcontinue \$chain setcontinue \$chain
done"; done
";
} }
} elsif ( ! $config{ADMINISABSENTMINDED} ) { } elsif ( ! $config{ADMINISABSENTMINDED} ) {
emit "for chain in INPUT OUTPUT FORWARD; do emit "for chain in INPUT OUTPUT FORWARD; do
setpolicy \$chain DROP setpolicy \$chain DROP
done done
deleteallchains" deleteallchains
"
} else { } else {
emit "for chain in INPUT FORWARD; do emit "for chain in INPUT FORWARD; do
setpolicy \$chain DROP setpolicy \$chain DROP
@ -376,7 +379,8 @@ stop_firewall() {
for chain in INPUT FORWARD; do for chain in INPUT FORWARD; do
setcontinue \$chain setcontinue \$chain
done"; done
";
} }
push_indent; push_indent;