diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-05-25 03:57:49 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-05-25 03:57:49 +0000 |
commit | 1a27be6164a1c0fa6c891c33ff6c95a06dfdb67e (patch) | |
tree | 8745793e43f2c2c9400f845605e2c7a7da54fe0c /perl-install/network | |
parent | 4bdff0536ca46706bf1daa273ab648078556b2fe (diff) | |
download | drakx-1a27be6164a1c0fa6c891c33ff6c95a06dfdb67e.tar drakx-1a27be6164a1c0fa6c891c33ff6c95a06dfdb67e.tar.gz drakx-1a27be6164a1c0fa6c891c33ff6c95a06dfdb67e.tar.bz2 drakx-1a27be6164a1c0fa6c891c33ff6c95a06dfdb67e.tar.xz drakx-1a27be6164a1c0fa6c891c33ff6c95a06dfdb67e.zip |
use if_()
Diffstat (limited to 'perl-install/network')
-rw-r--r-- | perl-install/network/shorewall.pm | 2 |
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); } |