]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lua resolve(): make DNSSEC_WANT imply +dnssec
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 16 Nov 2017 15:32:12 +0000 (16:32 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 16 Nov 2017 15:32:12 +0000 (16:32 +0100)
daemon/bindings.c

index ebcd799fa4b3f03dfa080bc4f88bc9c659e7eaf2..bde8d7a319afeb6035a26644f277fb28c92add3e 100644 (file)
@@ -1223,6 +1223,9 @@ static int wrk_resolve(lua_State *L)
                lua_pushstring(L, "invalid options");
                lua_error(L);
        }
+       if (options->DNSSEC_WANT) {
+               knot_edns_set_do(pkt->opt_rr);
+       }
        if (lua_isfunction(L, 5)) {
                /* Store callback in registry */
                lua_pushvalue(L, 5);