Skip to content

feat(client): dual-stack IPv4/IPv6 racing for hostname-based server addresses - #1613

Open
sthatom wants to merge 1 commit into
apernet:masterfrom
sthatom:master
Open

feat(client): dual-stack IPv4/IPv6 racing for hostname-based server addresses#1613
sthatom wants to merge 1 commit into
apernet:masterfrom
sthatom:master

Conversation

@sthatom

@sthatom sthatom commented Jul 4, 2026

Copy link
Copy Markdown

Refactor the client connect path to support dual-stack connectivity when the server is specified as a hostname rather than IP literal. The new flow resolves the hostname via DNS, then concurrently dials both IPv4 and IPv6 addresses, using the first successful connection and discarding the loser.

@sthatom
sthatom force-pushed the master branch 2 times, most recently from 8ff62b6 to a523ea5 Compare July 11, 2026 13:32
Implement dual-stack IPv4/IPv6 support using Go's built-in Happy Eyeballs mechanism (net.Dialer with DualStack: true).
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.

1 participant