Subject: | HTTP::Daemon listening on localhost (Win32 only bug) |
Hi,
the following code:
use HTTP::Daemon;
my $srv = HTTP::Daemon->new(LocalAddr => 'localhost:8080');
print "url=", $srv->url;
on Windows box (strawberry perl 5.10.1) prints:
url=http://MYPCNAME.domain.cz
however the daemon listens just on 127.0.0.1:8080 so the $srv->url is invalid.
on a Linux bow prints:
url=http://localhost.localdomain:8080/
which is OK (more or less)
--
kmx
the following code:
use HTTP::Daemon;
my $srv = HTTP::Daemon->new(LocalAddr => 'localhost:8080');
print "url=", $srv->url;
on Windows box (strawberry perl 5.10.1) prints:
url=http://MYPCNAME.domain.cz
however the daemon listens just on 127.0.0.1:8080 so the $srv->url is invalid.
on a Linux bow prints:
url=http://localhost.localdomain:8080/
which is OK (more or less)
--
kmx