mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
connectd: don't look for broken resolver if DNS disabled.
It does leak some information, in theory. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
9207e48246
commit
89bac0d516
@ -156,6 +156,12 @@ static bool broken_resolver(struct daemon *daemon)
|
||||
struct addrinfo hints;
|
||||
const char *hostname = "nxdomain-test.doesntexist";
|
||||
int err;
|
||||
|
||||
if (!daemon->use_dns) {
|
||||
daemon->broken_resolver_response = NULL;
|
||||
return false;
|
||||
}
|
||||
|
||||
memset(&hints, 0, sizeof(hints));
|
||||
hints.ai_family = AF_UNSPEC;
|
||||
hints.ai_socktype = SOCK_STREAM;
|
||||
|
Loading…
Reference in New Issue
Block a user