summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-09-05 17:30:45 +0000
committerOlivier Blin <oblin@mandriva.org>2005-09-05 17:30:45 +0000
commitc2f4710488dfcafa1d1043b777a4de0444654434 (patch)
treec1763c0f4eed76a6395f4483f837a0bf740f6b29 /perl-install/network
parent3c4a6d6f59f5c71070bbce13d46ca744d7079e7e (diff)
downloaddrakx-c2f4710488dfcafa1d1043b777a4de0444654434.tar
drakx-c2f4710488dfcafa1d1043b777a4de0444654434.tar.gz
drakx-c2f4710488dfcafa1d1043b777a4de0444654434.tar.bz2
drakx-c2f4710488dfcafa1d1043b777a4de0444654434.tar.xz
drakx-c2f4710488dfcafa1d1043b777a4de0444654434.zip
fix port range parser
Diffstat (limited to 'perl-install/network')
-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 463d64a62..90705ee41 100644
--- a/perl-install/network/shorewall.pm
+++ b/perl-install/network/shorewall.pm
@@ -101,7 +101,7 @@ sub ports_by_proto {
my ($ports) = @_;
my %ports_by_proto;
foreach (split ' ', $ports) {
- m!^(\d+(?:\d+)?)/(udp|tcp|icmp)$! or die "bad port $_\n";
+ m!^(\d+(?::\d+)?)/(udp|tcp|icmp)$! or die "bad port $_\n";
push @{$ports_by_proto{$2}}, $1;
}
\%ports_by_proto;