https://github.com/rakudo/rakudo/pull/981
Pull request to resolve issue On Sat, Dec 31, 2016 at 7:20 PM, perl6 via RT <[email protected]> wrote: > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "IO::Socket::INET Accepts invalid family values.", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has been > assigned an ID of [perl #130473]. > > Please include the string: > > [perl #130473] > > in the subject line of all future correspondence about this issue. To do > so, > you may reply to this message. > > Thank you, > [email protected] > > ------------------------------------------------------------------------- > 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 > >
