]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon: add deprecation warning for old DoH implementation
authorTomas Krizek <tomas.krizek@nic.cz>
Fri, 2 Oct 2020 11:31:25 +0000 (13:31 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 13 Oct 2020 10:55:31 +0000 (12:55 +0200)
daemon/bindings/net.c

index d2e2237657d4b52c7e9e3c915d43517df3f68469..93fbd57b0e88169c7d56bb62950cc7fbbb2ae3a0 100644 (file)
@@ -208,6 +208,10 @@ static int net_listen(lua_State *L)
                        tls = http = true;
                } else if (k) {
                        kind = k;
+                       if (strcasecmp(k, "doh") == 0) {
+                               kr_log_deprecate(
+                                       "kind=\"doh\" is an obsolete DoH implementation, use kind=\"doh2\" instead\n");
+                       }
                }
        }