]> granicus.if.org Git - pdns/commitdiff
fix check_stest_source
authorAki Tuomi <cmouse@cmouse.fi>
Fri, 7 Jul 2017 15:47:29 +0000 (18:47 +0300)
committerAki Tuomi <cmouse@cmouse.fi>
Mon, 18 Dec 2017 10:53:58 +0000 (12:53 +0200)
regression-tests/check_stest_source

index 4c43faa6e4992933dcade4d946272443a09594ab..00140e22bc272a128d54f99552932e2ba8e6afb6 100644 (file)
@@ -1,7 +1,7 @@
 function prequery ( dnspacket )
   qname, qtype = dnspacket:getQuestion()
-  remote = dnspacket:getRemote()
-  if qname == "stest.com." and remote ~= "127.0.0.2" then
+  remote = tostring(dnspacket:getRemote())
+  if qname == newDN("stest.com.") and remote ~= "127.0.0.2" then
     dnspacket:setRcode(pdns.NXDOMAIN)
     return true
     end