]> granicus.if.org Git - pdns/commitdiff
make "zeroScope" ECS be sensitive to variableAnswer from Lua as well
authorbert hubert <bert.hubert@netherlabs.nl>
Mon, 8 Oct 2018 09:08:20 +0000 (11:08 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 10 Jan 2019 09:56:00 +0000 (10:56 +0100)
pdns/pdns_recursor.cc

index 42196b7e05b813b70560be6de3553b2ff0029102..5c8614b662e430351bd36eae7a33a9ba33ec6678 100644 (file)
@@ -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"<<endl;
       EDNSSubnetOpts eo;
       eo.source = dc->d_ednssubnet.source;