]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
Fixed example for using resolve() function.
authorStepan Balazik <stepan.balazik@nic.cz>
Tue, 18 Oct 2016 17:29:21 +0000 (19:29 +0200)
committerStepan Balazik <stepan.balazik@nic.cz>
Tue, 18 Oct 2016 17:29:21 +0000 (19:29 +0200)
daemon/README.rst

index dcb107c1583222e5be6be911945169bd677d1706..758f1affa514ce6d884b658a4d559fc9a73a3d80 100644 (file)
@@ -1,4 +1,3 @@
-
 ************************
 Knot DNS Resolver daemon 
 ************************
@@ -449,6 +448,7 @@ Environment
             -- Print matching records
             local records = pkt:section(kres.section.ANSWER)
             for i = 1, #records do
+               local rr = records[i]
                if rr.type == kres.type.AAAA then
                   print ('record:', kres.rr2str(rr))
                end