mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +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:
parent
11db7ca9e6
commit
e229f113b9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user