From b6696eb321c4e4d87f4d4aedcebcac792ebb220e Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 6 Feb 2004 20:47:54 +0000 Subject: handle range (bugzilla #7172) --- perl-install/network/shorewall.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/network/shorewall.pm b/perl-install/network/shorewall.pm index 99d5c2b00..c957cbf51 100644 --- a/perl-install/network/shorewall.pm +++ b/perl-install/network/shorewall.pm @@ -114,8 +114,8 @@ sub write { my %ports_by_proto; foreach (split ' ', $conf->{ports}) { - m!^(\d+)/(udp|tcp|icmp)$! or die "bad port $_\n"; - push @{$ports_by_proto{$2}}, $1; + m!^(\d+(:\d+)?)/(udp|tcp|icmp)$! or die "bad port $_\n"; + push @{$ports_by_proto{$3}}, $1; } set_config_file("zones", -- cgit v1.2.1