Skip to content

BOLT 7: port zero always bad.#1331

Open
rustyrussell wants to merge 1 commit intolightning:masterfrom
rustyrussell:zero-port-always-bad
Open

BOLT 7: port zero always bad.#1331
rustyrussell wants to merge 1 commit intolightning:masterfrom
rustyrussell:zero-port-always-bad

Conversation

@rustyrussell
Copy link
Copy Markdown
Collaborator

This language dates back to when there were only IPv4 and v6 descriptors. DNS got added with that change, but Tor was never updated.

Zero ports never make sense, always disallow. I assume everyone does this.

This language dates back to when there were only IPv4 and v6 descriptors.
DNS got added with that change, but Tor was never updated.

Zero ports never make sense, always disallow.  I assume everyone does this.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
rustyrussell added a commit to rustyrussell/lightning that referenced this pull request Apr 10, 2026
BOLT 7 says this, but we don't do it.  (Actually, it only says that for certain types,
but I've fixed that in lightning/bolts#1331).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
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.

2 participants