conf: Fix check for IPv6 DNS address being already set
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
64c0f20ab3
commit
7eb155ab8f
1 changed files with 1 additions and 1 deletions
2
conf.c
2
conf.c
|
@ -525,7 +525,7 @@ static void get_dns(struct ctx *c)
|
||||||
FILE *r;
|
FILE *r;
|
||||||
|
|
||||||
dns4_set = !!*dns4;
|
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;
|
dnss_set = !!*s->n || c->no_dns_search;
|
||||||
dns_set = dns4_set || dns6_set || c->no_dns;
|
dns_set = dns4_set || dns6_set || c->no_dns;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue