Skip to content

fix: accept port 0 in JSON config (ephemeral port support)#3895

Merged
igor-sirotin merged 4 commits into
masterfrom
fix/allow-port-zero
May 22, 2026
Merged

fix: accept port 0 in JSON config (ephemeral port support)#3895
igor-sirotin merged 4 commits into
masterfrom
fix/allow-port-zero

Conversation

@igor-sirotin

@igor-sirotin igor-sirotin commented May 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Bump confutils to include:

Needed to run multiple module instances on one host (logos-co/logos-delivery-module#18).

The fieldPairs-driven JSON parser in createWaku delegated Port fields
to confutils's parseCmdArg, which rejects 0 and forces every consumer
to pin a fixed port. Special-case Port fields here so port 0 is
accepted and propagated to the libp2p / discv5 bind path, where the
OS assigns an ephemeral port.

Refs: logos-co/logos-delivery-module#18

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@github-actions

github-actions Bot commented May 20, 2026

Copy link
Copy Markdown

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:3895

Built from 4a8c45d

igor-sirotin and others added 3 commits May 21, 2026 20:44
Now that confutils accepts port 0 in parseCmdArg (status-im/nim-confutils#146),
revert the local Port special-case in createWaku and bump confutils to the
fix instead.

confutils is temporarily pinned to the PR fork commit
(igor-sirotin/nim-confutils@0292f00d) until #146 merges to status-im master.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Bring branch up to date with master (clears nimble-not-behind-tag).
status-im/nim-confutils#146 is merged; move the confutils pin from the
PR fork back to status-im/nim-confutils master (36f3115). Content is
identical to the fork commit, so nimble sha1 and nix sha256 are unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@igor-sirotin igor-sirotin marked this pull request as ready for review May 21, 2026 20:45
@igor-sirotin igor-sirotin merged commit c738c7b into master May 22, 2026
17 of 18 checks passed
@igor-sirotin igor-sirotin deleted the fix/allow-port-zero branch May 22, 2026 13:32
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.

3 participants