config+server: update usage of lncfg methods to pass in resolver

In this commit, we update all the lncfg methods used to properly pass in
a new resolver. This is required in order to ensure that we don't leak
our DNS queries if Tor mode is active.
This commit is contained in:
Olaoluwa Osuntokun
2018-06-27 15:05:11 -07:00
committed by Wilmer Paulino
parent 37f56ce976
commit 17399994e4
2 changed files with 29 additions and 18 deletions

View File

@@ -399,6 +399,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB, cc *chainControl,
// of this server's addresses.
externalIPs, err := lncfg.NormalizeAddresses(
externalIpStrings, strconv.Itoa(defaultPeerPort),
cfg.net.ResolveTCPAddr,
)
if err != nil {
return nil, err