getaddrinfo: Use Cloudflare DNS instead of Google DNS

Change-Id: Ide51c086d2570aa5ecf28868e13f4f1672a4ff8a
This commit is contained in:
Chirayu Desai 2020-12-05 03:11:49 +05:30 committed by Bartłomiej Rudecki
parent 361ba86734
commit 08b0e7690e

View file

@ -385,7 +385,7 @@ static int
_have_ipv4(unsigned mark, uid_t uid) {
static const struct sockaddr_in sin_test = {
.sin_family = AF_INET,
.sin_addr.s_addr = __constant_htonl(0x08080808L) // 8.8.8.8
.sin_addr.s_addr = __constant_htonl(0x01010101L) // 1.1.1.1
};
sockaddr_union addr = { .in = sin_test };
return _find_src_addr(&addr.generic, NULL, mark, uid) == 1;