From: Dirk Brenken Date: Sat, 24 Jun 2023 20:31:33 +0000 (+0200) Subject: luci-app-banip: sync with banIP 0.8.7-1 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7c56bce0dcdfd8d7b1cc808794738ded08bd52ec;p=project%2Fluci.git luci-app-banip: sync with banIP 0.8.7-1 * make new option 'ban_autoblocksubnet' available * sync translations Signed-off-by: Dirk Brenken (cherry picked from commit e245c9c280ad53f0b796614a0b259c9551a620b3) Signed-off-by: Dirk Brenken --- diff --git a/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js b/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js index 7e1c9aa6f1..bbcb27cfd3 100644 --- a/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js +++ b/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js @@ -363,7 +363,7 @@ return view.extend({ o.optional = true; o.rmempty = true; - o = s.taboption('advanced', form.ListValue, 'ban_splitsize', _('Set Split Size'), _('Split external set loading after every n members to save RAM.')); + o = s.taboption('advanced', form.ListValue, 'ban_splitsize', _('Set Split Size'), _('Split external Set loading after every n members to save RAM.')); o.value('256'); o.value('512'); o.value('1024'); @@ -609,6 +609,11 @@ return view.extend({ o.default = 1 o.rmempty = false; + o = s.taboption('feeds', form.Flag, 'ban_autoblocksubnet', _('Auto Block Subnet'), _('Automatically add entire subnets to the blocklist Set based on an additional RDAP request with the suspicious IP.')); + o.default = 0 + o.optional = true; + o.rmempty = true; + o = s.taboption('feeds', form.ListValue, 'ban_nftexpiry', _('Blocklist Set Expiry'), _('Expiry time for auto added blocklist Set members.')); o.value('10s'); o.value('1m');