Browse Source

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>
fee-tracking2
Rusty Russell 6 years ago
parent
commit
89bac0d516
  1. 6
      connectd/connectd.c

6
connectd/connectd.c

@ -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…
Cancel
Save