summaryrefslogtreecommitdiffstats
path: root/src/shared/resolve-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-06-13 04:00:52 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-06-13 04:00:52 +0200
commitddf1a953016cf3b23eff842df9340a3ddfb1ef83 (patch)
tree380b9ff12053562cfe06c9c9575402edeb1daae5 /src/shared/resolve-util.c
parentresolve: make manager_get_private_dns_mode() always return valid setting (diff)
downloadsystemd-ddf1a953016cf3b23eff842df9340a3ddfb1ef83.tar.xz
systemd-ddf1a953016cf3b23eff842df9340a3ddfb1ef83.zip
resolve: reject PrivateDNS=yes
Diffstat (limited to 'src/shared/resolve-util.c')
-rw-r--r--src/shared/resolve-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/resolve-util.c b/src/shared/resolve-util.c
index c626da5ed4..770334f257 100644
--- a/src/shared/resolve-util.c
+++ b/src/shared/resolve-util.c
@@ -31,4 +31,4 @@ static const char* const private_dns_mode_table[_PRIVATE_DNS_MODE_MAX] = {
[PRIVATE_DNS_NO] = "no",
[PRIVATE_DNS_OPPORTUNISTIC] = "opportunistic",
};
-DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(private_dns_mode, PrivateDnsMode, PRIVATE_DNS_OPPORTUNISTIC);
+DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(private_dns_mode, PrivateDnsMode, _PRIVATE_DNS_MODE_INVALID);