From bad540c3414709a168fbd423134b7ff8678b9419 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 12 Sep 2002 09:58:24 +0000 Subject: fix writing twice tcp instead of tcp & udp --- perl-install/network/shorewall.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} ]: (), -- cgit v1.2.1