Tor option to override target ip address

This commit is contained in:
Tomas Carnecky
2019-09-14 17:05:32 +02:00
parent 35027e52fc
commit b1fc008433
3 changed files with 25 additions and 8 deletions

View File

@ -542,7 +542,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()