]> granicus.if.org Git - pdns/commitdiff
fix more ;/return confusion
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 15 Mar 2018 19:22:38 +0000 (20:22 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 15 Mar 2018 19:22:38 +0000 (20:22 +0100)
docs/lua-records.rst

index e42331e277c7c1481256c1555a35a2904fb16864..cc92b6044a8b18e34e53be60ddd195d8acb1ca2c 100644 (file)
@@ -98,7 +98,7 @@ the second set is tried.
 
 This configuration makes sense in the following context::
 
-    www    IN    LUA    CNAME   ( "if(continent('EU')) then return 'west.powerdns.org' "
+    www    IN    LUA    CNAME   ( ";if(continent('EU')) then return 'west.powerdns.org' "
                                   "else return 'usa.powerdns.org' end" )
 
 
@@ -106,7 +106,7 @@ This sends queries that are geolocated to Europe to 'west.powerdns.org', and
 the rest to 'usa.powerdns.org'. The configuration for that name would then
 be::
 
-    usa    IN    LUA    A    ( "return ifurlup('https://www.lua.org/',           "
+    usa    IN    LUA    A    ( "ifurlup('https://www.lua.org/',           "
                                "{{'198.51.100.1'}, {'192.0.2.1', '192.0.2.2'}},  "
                                "{stringmatch='Programming in Lua'})              " )