diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-18 17:46:48 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-18 17:46:48 +0000 |
commit | d3e1081b1a597e830b10fc187297871a15bcd580 (patch) | |
tree | 229cb7ddf517eba597586712bc091ff7a9c2428a /lib/network/shorewall.pm | |
parent | 060233e3966d6653d4d811b89c8dcacf29be5211 (diff) | |
download | drakx-net-d3e1081b1a597e830b10fc187297871a15bcd580.tar drakx-net-d3e1081b1a597e830b10fc187297871a15bcd580.tar.gz drakx-net-d3e1081b1a597e830b10fc187297871a15bcd580.tar.bz2 drakx-net-d3e1081b1a597e830b10fc187297871a15bcd580.tar.xz drakx-net-d3e1081b1a597e830b10fc187297871a15bcd580.zip |
make sure shorewall config is written if there is no interface in net zone (#38722)
Diffstat (limited to 'lib/network/shorewall.pm')
-rw-r--r-- | lib/network/shorewall.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/shorewall.pm b/lib/network/shorewall.pm index ef3ba60..f9eb027 100644 --- a/lib/network/shorewall.pm +++ b/lib/network/shorewall.pm @@ -104,7 +104,7 @@ sub read { $conf{log_net_drop} = @policy ? (any { $_->[0] eq 'net' && $_->[1] eq 'all' && $_->[2] eq 'DROP' && $_->[3] } @policy) : 1; get_zones(\%conf, $o_in); - $conf{net_zone}[0] && \%conf; + @policy && \%conf; } sub ports_by_proto { |