Merge pull request #2813 from wereHamster/tor-target-ip-address

Tor option to override target IP address
This commit is contained in:
Wilmer Paulino authored and GitHub committed 2019-10-22 17:15:54 +02:00
commit 0b2ef8bb4e
3 files changed
+25 -8

No files matched your search

+1 -1
View File
@@ -552,7 +552,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB,
// automatically create an onion service, we'll initiate our Tor
// controller and establish a connection to the Tor server.
if cfg.Tor.Active && (cfg.Tor.V2 || cfg.Tor.V3) {
s.torController = tor.NewController(cfg.Tor.Control)
s.torController = tor.NewController(cfg.Tor.Control, cfg.Tor.TargetIPAddress)
}
chanGraph := chanDB.ChannelGraph()