Skip to content

Commit

Permalink
Merge pull request PowerDNS#13714 from spheron1/patch-1
Browse files Browse the repository at this point in the history
Fix country()/countryCode() mixup in example Lua Record documentation
  • Loading branch information
Habbie authored Jan 15, 2024
2 parents 381020d + 784b67f commit 08bd109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/lua-records/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ This will pick from the viable IP addresses the one deemed closest to the user.

LUA records can also contain more complex code, for example::

www IN LUA A ";if countryCode('US') then return {'192.0.2.1','192.0.2.2','198.51.100.1'} else return '192.0.2.2' end"
www IN LUA A ";if country('US') then return {'192.0.2.1','192.0.2.2','198.51.100.1'} else return '192.0.2.2' end"

As you can see you can return both single string value or array of strings.

Expand Down

0 comments on commit 08bd109

Please # to comment.