Skip Menu |

This queue is for tickets about the HTTP-Daemon CPAN distribution.

Report information
The Basics
Id: 62354
Status: resolved
Priority: 0/
Queue: HTTP-Daemon

People
Owner: Nobody in particular
Requestors: kmx [...] cpan.org
Cc:
AdminCc:

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



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

sorry fo typo:

Show quoted text
shoud be

url=http://MYPCNAME.domain.cz:8080/