summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-06-07 07:15:14 +0000
committerOlivier Blin <oblin@mandriva.org>2005-06-07 07:15:14 +0000
commit191df3977046a9ae332bc302ce6080824110c852 (patch)
tree22d6abf68625e2ca982aa86306d3c4f119dd9019 /perl-install/standalone
parent5a17de566fd2b45e08a61843eb7baa6a6e5c8015 (diff)
downloaddrakx-191df3977046a9ae332bc302ce6080824110c852.tar
drakx-191df3977046a9ae332bc302ce6080824110c852.tar.gz
drakx-191df3977046a9ae332bc302ce6080824110c852.tar.bz2
drakx-191df3977046a9ae332bc302ce6080824110c852.tar.xz
drakx-191df3977046a9ae332bc302ce6080824110c852.zip
don't be fooled by if_ not short-circuiting and auto-vivification, use $conf->{masq_subnet} instead of $conf->{masquerade}{subnet} (i.e. do not write buggy shorewall masqfile when connection sharing is disabled)
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakgw2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/drakgw b/perl-install/standalone/drakgw
index 4fd7c2490..319e3c457 100755
--- a/perl-install/standalone/drakgw
+++ b/perl-install/standalone/drakgw
@@ -398,7 +398,7 @@ sub gw_configure() {
$in->exit(-1);
}
- $shorewall->{masquerade} = { subnet => "$lan_intf->{NETWORK}/$lan_intf->{NETMASK}" };
+ $shorewall->{masq_subnet} = "$lan_intf->{NETWORK}/$lan_intf->{NETMASK}";
network::shorewall::write($shorewall);
#- be sure that FORWARD_IPV4 is enabled in /etc/sysconfig/network