Skip to content

feat(traceroute6): IPv6 endpoint/source resolution (#42)#50

Merged
smallnest merged 1 commit into
mainfrom
feat/issue-42-endpoint
Jun 30, 2026
Merged

feat(traceroute6): IPv6 endpoint/source resolution (#42)#50
smallnest merged 1 commit into
mainfrom
feat/issue-42-endpoint

Conversation

@smallnest

Copy link
Copy Markdown
Contributor

Summary

  • localEndpoint resolves the source IPv6 via a UDP6 connect (no packets sent), honoring --local-addr/--interface.
  • Rejects non-IPv6 local addresses; clear error when the outbound interface can't be determined.

Test plan

  • go vet ./traceroute6/...
  • go test ./traceroute6/... (interface-mapping test skips gracefully when no v6 addr present)

Closes #42

localEndpoint resolves the source IPv6 via a UDP6 connect (no packets
sent), honoring explicit --local-addr/--interface and rejecting non-IPv6
local addresses. Returns a clear error when the outbound interface can't
be determined.

Closes #42
@smallnest
smallnest merged commit c4e74c4 into main Jun 30, 2026
0 of 2 checks passed
@smallnest
smallnest deleted the feat/issue-42-endpoint branch June 30, 2026 02:31
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.

实现 IPv6 端点/源地址解析

1 participant