config+lnd: Update Tor configuration for hybrid node mode
This commit is contained in:
1 parent
be666b55b6
commit
c4221c3c3a
3 files changed
+23
-7
No files matched your search
@@ -906,9 +906,10 @@ func ValidateConfig(cfg Config, usageMessage string,
|
||||
// our real information.
|
||||
if cfg.Tor.Active {
|
||||
cfg.net = &tor.ProxyNet{
|
||||
SOCKS: cfg.Tor.SOCKS,
|
||||
DNS: cfg.Tor.DNS,
|
||||
StreamIsolation: cfg.Tor.StreamIsolation,
|
||||
SOCKS: cfg.Tor.SOCKS,
|
||||
DNS: cfg.Tor.DNS,
|
||||
StreamIsolation: cfg.Tor.StreamIsolation,
|
||||
DirectConnections: cfg.Tor.DirectConnections,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1316,7 +1317,7 @@ func ValidateConfig(cfg Config, usageMessage string,
|
||||
// connections.
|
||||
if len(cfg.RawListeners) == 0 {
|
||||
addr := fmt.Sprintf(":%d", defaultPeerPort)
|
||||
if cfg.Tor.Active {
|
||||
if cfg.Tor.Active && !cfg.Tor.DirectConnections {
|
||||
addr = fmt.Sprintf("localhost:%d", defaultPeerPort)
|
||||
}
|
||||
cfg.RawListeners = append(cfg.RawListeners, addr)
|
||||
|
||||
Reference in new issue
Block a user