Skip to content

Commit 91c2416

Browse files
committed
gossip: Do not use DNS if we were told not to
Signed-off-by: Christian Decker <[email protected]>
1 parent ceef61d commit 91c2416

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gossipd/gossip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3169,7 +3169,7 @@ static void try_reach_peer(struct daemon *daemon, const struct pubkey *id,
31693169
a = tal(tmpctx, struct wireaddr_internal);
31703170
wireaddr_from_unresolved(a, seedname(tmpctx, id),
31713171
DEFAULT_PORT);
3172-
} else {
3172+
} else if (daemon->use_dns) {
31733173
a = seed_resolve_addr(tmpctx, id);
31743174
}
31753175
}

0 commit comments

Comments
 (0)