From: Remi Gacogne Date: Thu, 1 Jun 2017 08:53:25 +0000 (+0200) Subject: dnsdist: Fix a typo in the documentation of NetmaskGroup:addMasks() X-Git-Tag: rec-4.1.0-alpha1~102^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b096265d0ac3cb321b9b87a688d3e5588df68d7;p=thirdparty%2Fpdns.git dnsdist: Fix a typo in the documentation of NetmaskGroup:addMasks() --- diff --git a/pdns/README-dnsdist.md b/pdns/README-dnsdist.md index 7a905e3d1e..c5a79312d6 100644 --- a/pdns/README-dnsdist.md +++ b/pdns/README-dnsdist.md @@ -1603,7 +1603,7 @@ instantiate a server with additional parameters * NetmaskGroup related * function `newNMG()`: returns a NetmaskGroup * member `addMask(mask)`: adds `mask` to the NetmaskGroup. Prefix with `!` to exclude this mask from matching. - * member `addMask(table)`: adds the keys of `table` to the NetmaskGroup. `table` should be a table whose keys + * member `addMasks(table)`: adds the keys of `table` to the NetmaskGroup. `table` should be a table whose keys are `ComboAddress` objects and values are integers, as returned by `exceed*` functions * member `match(ComboAddress)`: checks if ComboAddress is matched by this NetmaskGroup * member `clear()`: clears the NetmaskGroup diff --git a/pdns/dnsdist-lua2.cc b/pdns/dnsdist-lua2.cc index a07632e8da..3f31e2bee5 100644 --- a/pdns/dnsdist-lua2.cc +++ b/pdns/dnsdist-lua2.cc @@ -209,7 +209,7 @@ void moreLua(bool client) { nmg.addMask(mask); }); - g_lua.registerFunction& map)>("addMasks", [](NetmaskGroup&nmg, const std::map& map) + g_lua.registerFunction& map)>("addMasks", [](NetmaskGroup&nmg, const std::map& map) { for (const auto& entry : map) { nmg.addMask(Netmask(entry.first));