mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-03 21:24:22 +01:00
gossip: Do not use DNS if we were told not to
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user