Merge pull request #4056 from wpaulino/tor-onion-store

tor+server: add OnionStore to AddOnionConfig with file-based implementation
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2020-03-12 18:49:57 -07:00
commit 4cb518c174
4 files changed
+271 -145

No files matched your search

+3 -3
View File
@@ -1977,9 +1977,9 @@ func (s *server) initTorController() error {
// create our onion service. The service's private key will be saved to
// disk in order to regain access to this service when restarting `lnd`.
onionCfg := tor.AddOnionConfig{
VirtualPort: defaultPeerPort,
TargetPorts: listenPorts,
PrivateKeyPath: cfg.Tor.PrivateKeyPath,
VirtualPort: defaultPeerPort,
TargetPorts: listenPorts,
Store: tor.NewOnionFile(cfg.Tor.PrivateKeyPath, 0600),
}
switch {