Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: dns announcement without port #5434

Merged

Conversation

m-schmoock
Copy link
Collaborator

Issue

Currently when we announce a DNS address without specifying the port, lightningd will announce it with port 0, which is invalid.

Affects

EXPERIMENTAL builds with DNS announcement

Solution

This will fix set it to the corresponding network port.

This adds an X-Fail testcase that demonstrates that currently
the port of a DNS announcement is not set to the corresponding
network port (in this case regtest), but it will be set to 0.

Changelog-None
- set port for a DNS announcement without port to network default
- remove x-fail

Changelog-Fixed: Port of a DNS announcement can be 0 if unspecified
@rustyrussell
Copy link
Contributor

Ack bea7865

Copy link
Member

@cdecker cdecker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK bea7865

Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK bea7865

@m-schmoock m-schmoock merged commit 65433de into ElementsProject:master Jul 17, 2022
@m-schmoock
Copy link
Collaborator Author

3 ACKs are enough :)

@m-schmoock m-schmoock deleted the fix/dns_announce_without_port branch July 17, 2022 21:26
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.

4 participants