Skip Menu |

This queue is for tickets about the Net-Server CPAN distribution.

Report information
The Basics
Id: 43848
Status: resolved
Priority: 0/
Queue: Net-Server

People
Owner: Nobody in particular
Requestors: rt-cpan [...] triv.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.97
Fixed in: (no value)



Subject: Allow On Reverse Lookups
Configuring a server to allow connections based on reverse lookups does not work if the allow directives do not have a trailing dot. While technically correct, this is counter intuitive to many users (including myself! :). -- Chris Reinhardt chris@triv.org
The regular expressions are applied to whatever hostname is returned by your dns system. This is the code being used for the lookup. if ($addr && defined $prop->{'reverse_lookups'}) { if ($INC{'Socket6.pm'} && Socket6->can('getnameinfo')) { my @res = Socket6::getnameinfo($addr, 0); $prop->{'peerhost'} = $res[0] if @res > 1; }else{ $prop->{'peerhost'} = gethostbyaddr($addr, AF_INET); } } Net::Server cannot make decisions about trailing dots as that is the responsibility of the DNS system. Paul