summaryrefslogtreecommitdiffstats
path: root/daemon/bindings
diff options
context:
space:
mode:
authorTomas Krizek <tomas.krizek@nic.cz>2021-05-27 15:20:53 +0200
committerTomas Krizek <tomas.krizek@nic.cz>2021-05-31 15:38:15 +0200
commit6d1a878e7874423f157d63a06ccb0967de797f69 (patch)
treed21ca86e82d6702c0e4e415874e489b81acc9f05 /daemon/bindings
parentMerge branch 'improve-assertions' into 'master' (diff)
downloadknot-resolver-6d1a878e7874423f157d63a06ccb0967de797f69.tar.xz
knot-resolver-6d1a878e7874423f157d63a06ccb0967de797f69.zip
rename kind="doh" to kind="doh_legacy"
The purpose of this change is to make it harder to accidentally use the legacy DoH implementation and free up the "doh" kind which may be used as an alias to a modern implementation in the future.
Diffstat (limited to 'daemon/bindings')
-rw-r--r--daemon/bindings/net.c3
-rw-r--r--daemon/bindings/net_server.rst2
2 files changed, 2 insertions, 3 deletions
diff --git a/daemon/bindings/net.c b/daemon/bindings/net.c
index 8906f5e2..b5c9312f 100644
--- a/daemon/bindings/net.c
+++ b/daemon/bindings/net.c
@@ -247,8 +247,7 @@ static int net_listen(lua_State *L)
} else if (k) {
flags.kind = k;
if (strcasecmp(k, "doh") == 0) {
- kr_log_deprecate(
- "kind=\"doh\" is an obsolete DoH implementation, use kind=\"doh2\" instead\n");
+ lua_error_p(L, "kind=\"doh\" was renamed to kind=\"doh_legacy\", switch to the new implementation with kind=\"doh2\" or update your config");
}
}
diff --git a/daemon/bindings/net_server.rst b/daemon/bindings/net_server.rst
index 53e0efee..b652f4eb 100644
--- a/daemon/bindings/net_server.rst
+++ b/daemon/bindings/net_server.rst
@@ -18,7 +18,7 @@ First you need to decide what service should be available on given IP address
":ref:`dns-over-https`","``doh2``"
":ref:`Web management <mod-http-built-in-services>`","``webmgmt``"
":ref:`Control socket <control-sockets>`","``control``"
- ":ref:`mod-http-doh`","``doh``"
+ ":ref:`mod-http-doh`","``doh_legacy``"
.. note:: By default, **unencrypted DNS and DNS-over-TLS** are configured to **listen
on localhost**.