Skip to content

fix(node): allow IPv6-only addresses - #537

Merged
Sagit-chu merged 1 commit into
mainfrom
codex/fix-ipv6-only-node
Aug 3, 2026
Merged

fix(node): allow IPv6-only addresses#537
Sagit-chu merged 1 commit into
mainfrom
codex/fix-ipv6-only-node

Conversation

@Sagit-chu

Copy link
Copy Markdown
Owner

Summary

  • accept bare IPv6 literals when validating node addresses
  • preserve existing IPv4, hostname, and host:port handling
  • add regression coverage for IPv6-only nodes, including scoped IPv6 addresses

Root cause

net.SplitHostPort treats a bare IPv6 literal as a malformed host:port pair because it contains multiple colons. The validator now recognizes IP literals before attempting host:port parsing.

Validation

  • go test ./internal/http/handler/... (322 passed)
  • go test ./... (692 passed)
  • git diff --check

Closes #515

@Sagit-chu
Sagit-chu merged commit a8fd01d into main Aug 3, 2026
8 checks passed
@Sagit-chu
Sagit-chu deleted the codex/fix-ipv6-only-node branch August 3, 2026 03:05
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 only 的节点的时候会报错

1 participant