in reply to What should be default for Net::Server - IPv4, IPv6 or IPv*
The problem I have with the current behavior for Net::Server 2.001, is that if you specify "localhost" on a system with only IPv6 support, and where /etc/hosts only has ::1 as a interface for localhost, it will incorrectly only listen to IPv4 localhost (127.0.0.1). Since nothing on the box has any knowledge of IPv4 localhost, nothing can connect to the server. You have to explicitly use ::1 or set ipv to * for it to correctly listen on the ipv6 localhost interface. This seems utterly broken.
|