-
Notifications
You must be signed in to change notification settings - Fork 2.2k
docs: clarify --externalhosts usage #6142
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
Conversation
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]
There was a problem hiding this 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."` |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
I do have |
There was a problem hiding this 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."` |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement!
This clarifies the usage of the
externalhosts
option and brings its documentation in line with similar options such asexternalip
.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.