summaryrefslogtreecommitdiffstats
path: root/src/shared/resolve-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/resolve-util.c')
-rw-r--r--src/shared/resolve-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/resolve-util.c b/src/shared/resolve-util.c
index 6541d231ed..820f9bb530 100644
--- a/src/shared/resolve-util.c
+++ b/src/shared/resolve-util.c
@@ -31,12 +31,12 @@ DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(dns_over_tls_mode, DnsOverTlsMode, DNS_O
bool dns_server_address_valid(int family, const union in_addr_union *sa) {
- /* Refuses the 0 IP addresses as well as 127.0.0.53 (which is our own DNS stub) */
+ /* Refuses the 0 IP addresses as well as 127.0.0.53/127.0.0.54 (which is our own DNS stub) */
if (!in_addr_is_set(family, sa))
return false;
- if (family == AF_INET && sa->in.s_addr == htobe32(INADDR_DNS_STUB))
+ if (family == AF_INET && IN_SET(be32toh(sa->in.s_addr), INADDR_DNS_STUB, INADDR_DNS_PROXY_STUB))
return false;
return true;