summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-05-25 03:57:49 +0000
committerOlivier Blin <oblin@mandriva.org>2005-05-25 03:57:49 +0000
commit1a27be6164a1c0fa6c891c33ff6c95a06dfdb67e (patch)
tree8745793e43f2c2c9400f845605e2c7a7da54fe0c
parent4bdff0536ca46706bf1daa273ab648078556b2fe (diff)
downloaddrakx-1a27be6164a1c0fa6c891c33ff6c95a06dfdb67e.tar
drakx-1a27be6164a1c0fa6c891c33ff6c95a06dfdb67e.tar.gz
drakx-1a27be6164a1c0fa6c891c33ff6c95a06dfdb67e.tar.bz2
drakx-1a27be6164a1c0fa6c891c33ff6c95a06dfdb67e.tar.xz
drakx-1a27be6164a1c0fa6c891c33ff6c95a06dfdb67e.zip
use if_()
-rw-r--r--perl-install/network/shorewall.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/shorewall.pm b/perl-install/network/shorewall.pm
index 0745155d1..82d3c5ec0 100644
--- a/perl-install/network/shorewall.pm
+++ b/perl-install/network/shorewall.pm
@@ -137,7 +137,7 @@ sub write {
s/#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE/REDIRECT\tloc\t$squid_port\ttcp\twww\t-\nACCEPT\tfw\tnet\ttcp\twww\n#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE/;
} "/etc/shorewall/rules";
}
- set_config_file('masq', $conf->{masquerade} ? [ $conf->{net_interface}, $conf->{masquerade}{subnet} ] : ());
+ set_config_file('masq', if_($conf->{masquerade}, [ $conf->{net_interface}, $conf->{masquerade}{subnet} ]));
services::set_status('shorewall', !$conf->{disabled}, $::isInstall);
}