Skip to content

fix(http-client): correctly handle ipv6 literals#2298

Open
cristicbz wants to merge 1 commit intoactions:mainfrom
cristicbz:http-client-ipv6
Open

fix(http-client): correctly handle ipv6 literals#2298
cristicbz wants to merge 1 commit intoactions:mainfrom
cristicbz:http-client-ipv6

Conversation

@cristicbz
Copy link

Right now, attempting to access a literal IPv6 endpoint results in a getaddrinfo ENOTFOUND, because URL.hostname returns bracketed IPv6 literals, like [2001:db8::1], while node expects them unbracketed; the mismatch results in it trying to resolve the IPv6 address as a domain, and failing.

Fixes actions/cache#1718 .

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Caching fails on IPv6 cache server

1 participant