Skip to content

feat: -v6only, IPv6-only exit (on by default) - #1

Merged
Freecode100Year merged 17 commits into
mainfrom
feat/v6only
Oct 9, 2026
Merged

Freecode100Year merged 17 commits into
mainfrom
feat/v6only

Conversation

@Freecode100Year

Copy link
Copy Markdown
Owner

IPv4 is routed into the tunnel and refused at once (TCP RST / ICMP unreachable); the tunnel gets an IPv6 default route and Cloudflare's IPv6 resolver so Windows hands out AAAA on IPv4-only networks. -v6only=false restores v0.4.0 behaviour.

🤖 Generated with Claude Code

Freecode100Year and others added 17 commits October 9, 2026 13:52
IPv4 is still routed into the tunnel so nothing leaks around it, but the
peer only accepts ::/0 plus the system's IPv4 DNS servers, so other IPv4
traffic is dropped. Health checks ping Cloudflare over IPv6 in this mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g it

Dropped IPv4 left programs (Windows' own certificate revocation checks,
Go's dialer) waiting out timeouts before trying IPv6. Refusing at once
lets them move on immediately.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…4-only networks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… returns AAAA

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A copy of the system's IPv4 DNS on the tunnel sent queries for LAN/Azure
resolvers into the tunnel. Windows needs a resolver on an IPv6 interface
to return AAAA at all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Freecode100Year
Freecode100Year merged commit d257e20 into main Oct 9, 2026
1 check passed
@Freecode100Year
Freecode100Year deleted the feat/v6only branch October 9, 2026 18:37
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