# New Ticket Created by zengargoyle # Please include the string: [perl #131553] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=131553 >
$ perl6 -e 'say so IO::Socket::INET.new( :host<127.0.0.1>, :port(80));' True perl6 -e 'say so IO::Socket::INET.new( :host<127.0.0.1>, :port(80) :family(3));' True $ perl6 -e 'say so IO::Socket::INET.new( :host<::1>, :port(80) :family(3));' True $ perl6 -e 'say so IO::Socket::INET.new( :host<::1>, :port(80));' Failed to resolve host name in block <unit> at -e line 1 The :host<> of IO::Socket::INET should be agnostic as to IP protocol version. When given a hostname (or IPv*) there is no distinction between the versions. The current behavior will cause mysterious failures and is not consistent.