mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-05 22:24:25 +01:00
gossipd: don't try to reach tor if we don't have a proxy.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -2075,6 +2075,9 @@ static void try_reach_peer(struct daemon *daemon, const struct pubkey *id,
|
||||
switch (a->addr.u.wireaddr.type) {
|
||||
case ADDR_TYPE_TOR_V2:
|
||||
case ADDR_TYPE_TOR_V3:
|
||||
if (!daemon->tor_proxyaddr)
|
||||
break;
|
||||
/* fall thru */
|
||||
case ADDR_TYPE_IPV4:
|
||||
af = AF_INET;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user