From: Vladimír Čunát Date: Thu, 16 Nov 2017 15:32:12 +0000 (+0100) Subject: lua resolve(): make DNSSEC_WANT imply +dnssec X-Git-Tag: v1.5.1~22^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=719c6c1a089fab16b4c474dab23425eeb12048b9;p=thirdparty%2Fknot-resolver.git lua resolve(): make DNSSEC_WANT imply +dnssec --- diff --git a/daemon/bindings.c b/daemon/bindings.c index ebcd799fa..bde8d7a31 100644 --- a/daemon/bindings.c +++ b/daemon/bindings.c @@ -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);