# New Ticket Created by Douglas Jenkins # Please include the string: [perl #130473] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=130473 >
The constructor for IO::Socket::INET has a parameter ':family' to determine if the host/localhost value is defined using IPv4 (2) or IPv6 (3). However the constructor will accept any value and default to IPv4 (2) if the value is not IPv3 (3). Per discussion on IRC this behavior is LTA and should instead fail on invalid values: https://irclog.perlgeek.de/perl6/2016-12-28 E.g. my $listener = IO:Socket::INET.new( :family(11), :localhost<localhost> :localport(3000) ) Should fail
