From 1b096265d0ac3cb321b9b87a688d3e5588df68d7 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 1 Jun 2017 10:53:25 +0200 Subject: [PATCH] dnsdist: Fix a typo in the documentation of NetmaskGroup:addMasks() --- pdns/README-dnsdist.md | 2 +- pdns/dnsdist-lua2.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/README-dnsdist.md b/pdns/README-dnsdist.md index 7a905e3d1..c5a79312d 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 a07632e8d..3f31e2bee 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)); -- 2.40.0