From 98cc7baeb9673d1c7ea653177936baf5b5f3a9a2 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Mon, 8 Oct 2018 11:08:20 +0200 Subject: [PATCH] make "zeroScope" ECS be sensitive to variableAnswer from Lua as well --- pdns/pdns_recursor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 42196b7e0..5c8614b66 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -1486,7 +1486,7 @@ static void startDoResolve(void *p) } sendit:; - if(g_useIncomingECS && dc->d_ecsFound && !sr.wasVariable()) { + if(g_useIncomingECS && dc->d_ecsFound && (!sr.wasVariable() && !variableAnswer)) { // cerr<<"Stuffing in a 0 scope because answer is static"<d_ednssubnet.source; -- 2.40.0