Skip to content

Fix IPv6 handling#193

Merged
mpolden merged 2 commits intompolden:masterfrom
Nextra:fix-ipv6
Feb 12, 2026
Merged

Fix IPv6 handling#193
mpolden merged 2 commits intompolden:masterfrom
Nextra:fix-ipv6

Conversation

@Nextra
Copy link
Contributor

@Nextra Nextra commented Feb 12, 2026

As reported here by @deovero-jeroen, #174 introduced a bug where plain IPv6 addresses are no longer handled properly.

This PR introduces a second set of test cases focusing on IPv6, and also fixes the bug by relying on net.ParseIP to do the initial "validation", instead of immediately trying to manually determine if net.SplitHostPort should be called.

@deovero-jeroen
Copy link

Thanks for the quick fix @Nextra !

@mpolden mpolden merged commit a90ace4 into mpolden:master Feb 12, 2026
1 check passed
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.

3 participants