Skip to content

Conversation

sangaman
Copy link
Contributor

@sangaman sangaman commented Jan 6, 2022

This clarifies the usage of the externalhosts option and brings its documentation in line with similar options such as externalip.

Related issue: #6141

Note: I skipped ci for this commit since it's just a 1 line documentation change and I didn't want to have to update the change log just for this, but I don't mind to re-enable ci and update the change log if that's preferable.

This clarifies the usage of the `externalhosts` option and brings its
documentation in line with similar options such as `externalip`.

Related issue: lightningnetwork#6141

[skip ci]
Copy link
Collaborator

@guggero guggero left a comment

Choose a reason for hiding this comment

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

Thanks for the improvement/clarification!

The commit prefix should be config: . And you should either add [skip ci] to the commit message or add an entry to the 0.15 release notes.

RawListeners []string `long:"listen" description:"Add an interface/port to listen for peer connections"`
RawExternalIPs []string `long:"externalip" description:"Add an ip:port to the list of local addresses we claim to listen on to peers. If a port is not specified, the default (9735) will be used regardless of other parameters"`
ExternalHosts []string `long:"externalhosts" description:"A set of hosts that should be periodically resolved to announce IPs for"`
ExternalHosts []string `long:"externalhosts" description:"Add a hostname:port that should be periodically resolved to announce IPs for. If a port is not specified, the default (9735) will be used."`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we also add "Can be specified multiple times" to make it clear it's a list of hosts? In the code you see all the flags that are slices ([]string) that can be specified multiple times. But when just looking at lnd --help it's not really clear.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's fine with me. I just followed the model of the options in the lines above like externalip which doesn't say "can be specified multiple times". I think that they say they "add" an option implies that they can be specified multiple times but I also see how it might not be that clear.

Should they all mention explicitly that they can be specified multiple times?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, you're right, best stick to how the other multiple options are worded. We can overhaul the whole config description in another PR.

@sangaman
Copy link
Contributor Author

sangaman commented Jan 6, 2022

And you should either add [skip ci] to the commit message or add an entry to the 0.15 release notes.

I do have [skip ci] in the commit message and I notice that none of the ci steps are running. Did I do it right? I can just add an entry to the release notes if it makes things easier.

Copy link
Collaborator

@guggero guggero left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM 🎉

It's correct, if you add [skip ci] then none of the steps will run.

RawListeners []string `long:"listen" description:"Add an interface/port to listen for peer connections"`
RawExternalIPs []string `long:"externalip" description:"Add an ip:port to the list of local addresses we claim to listen on to peers. If a port is not specified, the default (9735) will be used regardless of other parameters"`
ExternalHosts []string `long:"externalhosts" description:"A set of hosts that should be periodically resolved to announce IPs for"`
ExternalHosts []string `long:"externalhosts" description:"Add a hostname:port that should be periodically resolved to announce IPs for. If a port is not specified, the default (9735) will be used."`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, you're right, best stick to how the other multiple options are worded. We can overhaul the whole config description in another PR.

@guggero guggero requested a review from carlaKC January 12, 2022 10:33
Copy link
Collaborator

@carlaKC carlaKC left a comment

Choose a reason for hiding this comment

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

Nice improvement!

@guggero guggero added this to the v0.15.0 milestone Jan 12, 2022
@guggero guggero merged commit 2560e2c into lightningnetwork:master Jan 12, 2022
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