diff options
author | Tomas Krizek <tomas.krizek@nic.cz> | 2021-05-27 15:20:53 +0200 |
---|---|---|
committer | Tomas Krizek <tomas.krizek@nic.cz> | 2021-05-31 15:38:15 +0200 |
commit | 6d1a878e7874423f157d63a06ccb0967de797f69 (patch) | |
tree | d21ca86e82d6702c0e4e415874e489b81acc9f05 /daemon/bindings | |
parent | Merge branch 'improve-assertions' into 'master' (diff) | |
download | knot-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.c | 3 | ||||
-rw-r--r-- | daemon/bindings/net_server.rst | 2 |
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**. |