Skip to content

Add cmd/traceroute6 CLI wiring flags and enrich providers - #54

Merged
smallnest merged 1 commit into
mainfrom
feat/issue-46-cli
Jun 30, 2026
Merged

Add cmd/traceroute6 CLI wiring flags and enrich providers#54
smallnest merged 1 commit into
mainfrom
feat/issue-46-cli

Conversation

@smallnest

Copy link
Copy Markdown
Contributor

Summary

  • Add cmd/traceroute6/main.go mirroring cmd/traceroute with v6 adaptations
  • -t/--tos feeds Config.TrafficClass; -m/--max-hops feeds Config.HopLimit
  • Default port: TCP=80, otherwise 33434; --asn/--geo wire Cymru/ipinfo providers (both default off)
  • resolveTargets resolves hostnames to the first AAAA address; rejects IPv4-only input with a clear "use traceroute for IPv4" error

Closes #46

Test plan

  • go build ./... clean
  • go vet ./cmd/traceroute6 clean
  • gofmt -l clean
  • --help lists all flags; -V prints version
  • go test ./traceroute6/... pass

Mirror cmd/traceroute with v6 adaptations: -t/--tos feeds
Config.TrafficClass, -m/--max-hops feeds Config.HopLimit, default
port TCP=80/else=33434. resolveTargets resolves hostnames to the
first AAAA address and rejects IPv4-only input with a clear error.
--asn/--geo wire Cymru/ipinfo providers, both default off.

Closes #46
@smallnest
smallnest merged commit 92dac33 into main Jun 30, 2026
1 of 2 checks passed
@smallnest
smallnest deleted the feat/issue-46-cli branch June 30, 2026 02:51
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.

创建 cmd/traceroute6 CLI 并接线 flag/provider

1 participant