Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket::getaddrinfo no longer works with IPv6 #220

Open
Yaribz opened this issue Oct 15, 2024 · 1 comment
Open

Socket::getaddrinfo no longer works with IPv6 #220

Yaribz opened this issue Oct 15, 2024 · 1 comment

Comments

@Yaribz
Copy link

Yaribz commented Oct 15, 2024

use Socket qw'getaddrinfo AF_INET6';

my ($err)=getaddrinfo('www.google.com', 443, {family => AF_INET6});
die "getaddrinfo error: $err\n" if($err);
print "OK.\n";

Result with Strawberry Perl 5.38.2.2 64bit:

OK.

Result with Strawberry Perl 5.40.0.1 64bit:

getaddrinfo error: ai_family not supported
@shawnlaffan
Copy link
Contributor

Confirmed.

The Socket module is core so this might be a Perl bug, perhaps related to UCRT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants