Fix missing capture group

git-svn-id: https://svn.perl.org/qpsmtpd/trunk@932 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
Robert Spier 2008-07-04 02:02:26 +00:00 committed by Ask Bjørn Hansen
parent 37e441e70e
commit d5c81c31d8

View File

@ -369,11 +369,13 @@ sub lookup_start {
while ($l =~ m{ while ($l =~ m{
\w{3,16}:/+ # protocol \w{3,16}:/+ # protocol
(?:\S+@)? # user/pass (?:\S+@)? # user/pass
[a-zA-Z0-9][a-zA-Z0-9\-.]+\. # hostname (
(?:aero|arpa|asia|biz|cat|com|coop| # tld [a-zA-Z0-9][a-zA-Z0-9\-.]+\. # hostname
edu|gov|info|int|jobs|mil|mobi| (?:aero|arpa|asia|biz|cat|com|coop| # tld
museum|name|net|org|pro|tel|travel| edu|gov|info|int|jobs|mil|mobi|
[a-zA-Z]{2}) museum|name|net|org|pro|tel|travel|
[a-zA-Z]{2})
)
}gix) { }gix) {
my $host = lc $1; my $host = lc $1;
my @host_domains = split /\./, $host; my @host_domains = split /\./, $host;