Subject: | <<LocalAddr => 'localhost'>> doesn't work. |
Hi,
The documentation suggests that LocalAddr can be used to bind the server
to a specific address. To limit unwarranted connections, one might do
HTTP::Daemon->new( LocalAddr => 'localhost' )
However, when one do this, ->url returns
http://hostname:12345/
That's a problem. A connection cannot be established to the HTTP::Daemon
because it only accepts connections to localhost.
I don't know if the problem is a bug in gethostbyaddr, or if the bug is
the use of gethostbyaddr, but it's not producing the desired result.
Show quoted text
>perl -MSocket -E"say scalar gethostbyaddr(pack('C4', 127,0,0,1),
AF_INET)"
tribble
I'm not sure what the solution is.
Tested on both a Windows machine and a Linux machine.
Thanks,
Eric