summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-09-12 09:58:24 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-09-12 09:58:24 +0000
commitbad540c3414709a168fbd423134b7ff8678b9419 (patch)
tree8f846258e7ebc9a122cf9788b0354f647d32d389
parent960ee62ecda80f22975a2c30efc200f8e41fa3c3 (diff)
downloaddrakx-bad540c3414709a168fbd423134b7ff8678b9419.tar
drakx-bad540c3414709a168fbd423134b7ff8678b9419.tar.gz
drakx-bad540c3414709a168fbd423134b7ff8678b9419.tar.bz2
drakx-bad540c3414709a168fbd423134b7ff8678b9419.tar.xz
drakx-bad540c3414709a168fbd423134b7ff8678b9419.zip
fix writing twice tcp instead of tcp & udp
-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 92ac212e4..64800bf1a 100644
--- a/perl-install/network/shorewall.pm
+++ b/perl-install/network/shorewall.pm
@@ -116,7 +116,7 @@ sub write {
(map
{ map_each { [ 'ACCEPT', $_, 'fw', $::a, join(',', @$::b), '-' ] } %ports_by_proto }
('net', if_($conf->{masquerade}, 'masq'), if_($conf->{loc_interface}, 'loc'))),
- if_($conf->{masquerade}, map { [ 'ACCEPT', 'masq', 'fw', 'tcp', join(',', @drakgw_ports), '-' ] } 'tcp', 'udp'),
+ if_($conf->{masquerade}, map { [ 'ACCEPT', 'masq', 'fw', $_, join(',', @drakgw_ports), '-' ] } 'tcp', 'udp'),
);
set_config_file('masq',
$conf->{masquerade} ? [ $conf->{net_interface}, $conf->{masquerade}{subnet} ]: (),