]> granicus.if.org Git - pdns/commitdiff
rec: Fix an invalid use if cls._PREFIX in the ECS regression tests
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 8 Jan 2019 16:00:17 +0000 (17:00 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 8 Jan 2019 16:00:17 +0000 (17:00 +0100)
regression-tests.recursor-dnssec/test_ECS.py

index 67ac34d9dadfb690a8a8ce65a69aa20eabf3ffe3..7da9f05040c362b54537029f5c770562268bce15 100644 (file)
@@ -518,7 +518,7 @@ class UDPECSResponder(DatagramProtocol):
         elif request.question[0].name == dns.name.from_text(nameECS) and request.question[0].rdtype == dns.rdatatype.NS:
             answer = dns.rrset.from_text(nameECS, ttlECS, dns.rdataclass.IN, 'NS', 'ns1.ecs-echo.example.')
             response.answer.append(answer)
-            additional = dns.rrset.from_text('ns1.ecs-echo.example.', 15, dns.rdataclass.IN, 'A', cls._PREFIX + '.21')
+            additional = dns.rrset.from_text('ns1.ecs-echo.example.', 15, dns.rdataclass.IN, 'A', os.environ['PREFIX'] + '.21')
             response.additional.append(additional)
 
         if ecso: