diff --git a/gossipd/gossip.c b/gossipd/gossip.c index 5906b2837..ff8745fec 100644 --- a/gossipd/gossip.c +++ b/gossipd/gossip.c @@ -3169,7 +3169,7 @@ static void try_reach_peer(struct daemon *daemon, const struct pubkey *id, a = tal(tmpctx, struct wireaddr_internal); wireaddr_from_unresolved(a, seedname(tmpctx, id), DEFAULT_PORT); - } else { + } else if (daemon->use_dns) { a = seed_resolve_addr(tmpctx, id); } }