aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-12-04 13:49:03 +0100
committerLennart Poettering <lennart@poettering.net>2018-12-21 11:04:11 +0100
commitdc2bc986eb3883ad4ae6dc7de41a17fc078f3fae (patch)
treed250e1e034309f9945f1552229ca86e2999e83ed
parentresolved: use structured initialization for DnsScope (diff)
downloadsystemd-dc2bc986eb3883ad4ae6dc7de41a17fc078f3fae.tar.gz
systemd-dc2bc986eb3883ad4ae6dc7de41a17fc078f3fae.tar.bz2
systemd-dc2bc986eb3883ad4ae6dc7de41a17fc078f3fae.zip
resolved: check dns_over_tls_mode in link_needs_save()
This was forgotten when DoT was added.
-rw-r--r--src/resolve/resolved-link.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resolve/resolved-link.c b/src/resolve/resolved-link.c
index 2cfb848a8..0f9a0e942 100644
--- a/src/resolve/resolved-link.c
+++ b/src/resolve/resolved-link.c
@@ -1109,7 +1109,8 @@ static bool link_needs_save(Link *l) {
if (l->llmnr_support != RESOLVE_SUPPORT_YES ||
l->mdns_support != RESOLVE_SUPPORT_NO ||
- l->dnssec_mode != _DNSSEC_MODE_INVALID)
+ l->dnssec_mode != _DNSSEC_MODE_INVALID ||
+ l->dns_over_tls_mode != _DNS_OVER_TLS_MODE_INVALID)
return true;
if (l->dns_servers ||