-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
watchtower: automatically create tor hidden service if enabled #4087
Conversation
Updated the PR to address the comments, and also included a blurb in |
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.
Looks good to me, just some final minor comments.
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.
Linter is complaining, but LGTM otherwise.
lnd.go:488:21: ST1005: error strings should not be capitalized (stylecheck)
err := fmt.Errorf("Unable to initialize tor controller: %v", err)
Co-authored-by: Turtle <orbitalturtle@protonmail.com>
This commit lets the watchtower automatically create hidden services by giving it a pointer to a TorController. The server was also slightly refactored so that it was not the sole owner of the TorController.
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.
LGTM
Picks up where #3613 left off. I think I gave credit correctly to @orbitalturtle by adding them as a Co-author in the first commit message. The old PR created two
TorContoller
s, one in theserver
, one in the watchtower server. Now, aTorController
is instead created inlnd.go
and passed to both subsystems to avoid creating multiple connections to Tor's ControlPort.Closes #3302