]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Update pdns/recursordist/docs/lua-scripting/netmask.rst 9463/head
authorspirillen <44526987+spirillen@users.noreply.github.com>
Mon, 14 Sep 2020 09:45:26 +0000 (11:45 +0200)
committerGitHub <noreply@github.com>
Mon, 14 Sep 2020 09:45:26 +0000 (11:45 +0200)
Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
pdns/recursordist/docs/lua-scripting/netmask.rst

index 8508ec6c24f7e842812c181646e92c0386f36d70..b6c09f579b1d5cc6d4b1b298b6d716076f851665 100644 (file)
@@ -86,7 +86,7 @@ They can be matched against netmasks objects:
   nmg = newNMG()
   nmg:addMask("127.0.0.0/8")
   nmg:addMasks({"213.244.168.0/24", "130.161.0.0/16"})
-  nmg:addMasks(dofile("bad-ips.lua")) -- a lua script that return {"ip1","ip2"..}
+  nmg:addMasks(dofile("bad-ips.lua")) -- a lua script file that contains: return {"ip1","ip2"..}
 
   if nmg:match(dq.remoteaddr) then
     print("Intercepting query from ", dq.remoteaddr)