conf: Fix check for IPv6 DNS address being already set

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2021-08-20 01:14:15 +02:00
parent 64c0f20ab3
commit 7eb155ab8f

2
conf.c
View file

@ -525,7 +525,7 @@ static void get_dns(struct ctx *c)
FILE *r;
dns4_set = !!*dns4;
dns6_set = !IN6_IS_ADDR_UNSPECIFIED(&dns6);
dns6_set = !IN6_IS_ADDR_UNSPECIFIED(dns6);
dnss_set = !!*s->n || c->no_dns_search;
dns_set = dns4_set || dns6_set || c->no_dns;