Skip to content

fix(bundler): use net.JoinHostPort for IPv6 address formatting in BundleFromRemote - #1454

Open
AruneshDwivedi wants to merge 1 commit into
cloudflare:masterfrom
AruneshDwivedi:fix/ipv6-bundle
Open

AruneshDwivedi wants to merge 1 commit into
cloudflare:masterfrom
AruneshDwivedi:fix/ipv6-bundle

Conversation

@AruneshDwivedi

Copy link
Copy Markdown

When building the dial address by concatenating ip/serverName with ':443', IPv6 literals produce invalid addresses like '2001:db8::1:443' instead of '[2001:db8::1]:443'. Use net.JoinHostPort which correctly adds brackets for IPv6 literals while leaving hostnames and IPv4 addresses unchanged.

Fixes #1448

…dleFromRemote

When building the dial address by concatenating ip/serverName with ':443',
IPv6 literals produce invalid addresses like '2001:db8::1:443' instead of
'[2001:db8::1]:443'. Use net.JoinHostPort which correctly adds brackets
for IPv6 literals while leaving hostnames and IPv4 addresses unchanged.

Fixes cloudflare#1448

Signed-off-by: Arunesh Dwivedi <arunesh.devops@gmail.com>
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.

Bundler.BundleFromRemote fails for IPv6 address literals

1 participant