Skip to content

feat(enrich): IPv6 support for Cymru + ipinfo providers (#40) - #48

Merged
smallnest merged 1 commit into
mainfrom
feat/issue-40-enrich-ipv6
Jun 30, 2026
Merged

smallnest merged 1 commit into
mainfrom
feat/issue-40-enrich-ipv6

Conversation

@smallnest

Copy link
Copy Markdown
Contributor

Summary

  • Cymru provider now resolves IPv6 via origin6.asn.cymru.com (reversed nibbles); IPv4 unchanged on origin.asn.cymru.com.
  • Adds reverseV6Nibbles helper with a fixture-locked unit test.
  • Confirms IPInfoProvider already works for v6 (sends the v6 literal in the request path) via a httptest test — no production change needed.

Test plan

  • go vet ./traceroute/enrich/...
  • go test ./traceroute/enrich/...

Closes #40

…nfo v6

Cymru Lookup now branches on address family, querying origin6.asn.cymru.com
with reversed nibbles for IPv6 while v4 keeps origin.asn.cymru.com. Adds
reverseV6Nibbles helper and tests; confirms IPInfoProvider already emits the
v6 literal in its request path.

Closes #40
@smallnest
smallnest merged commit b0dbd3c into main Jun 30, 2026
1 of 2 checks passed
@smallnest
smallnest deleted the feat/issue-40-enrich-ipv6 branch June 30, 2026 02:27
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.

扩展 enrich 包支持 IPv6 (Cymru origin6 + ipinfo v6)

1 participant