summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-banip/htdocs/luci-static
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2023-05-13 06:24:39 +0200
committerDirk Brenken <dev@brenken.org>2023-05-13 06:24:39 +0200
commite6c3364a73001a7fda42d5504aabeb20fca12dbc (patch)
tree039e2e22fea35cca39eca3c31fb0991690365187 /applications/luci-app-banip/htdocs/luci-static
parentfa9fb2f9552034f7e4229bbb35eb3524e5557185 (diff)
luci-app-banip: sync with banIP 0.8.6-1
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-banip/htdocs/luci-static')
-rw-r--r--applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js25
1 files changed, 11 insertions, 14 deletions
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 8b8f0ee1ed..7e1c9aa6f1 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
@@ -324,7 +324,6 @@ return view.extend({
o.value('5', _('5 (default)'));
o.value('10', _('10'));
o.value('20', _('20'));
-
o.optional = true;
o.rmempty = true;
@@ -460,15 +459,6 @@ return view.extend({
o.rmempty = true;
}
- o = s.taboption('adv_chain', form.ListValue, 'ban_nftexpiry', _('Blocklist Expiry'), _('Expiry time for auto added blocklist set members.'));
- o.value('10s');
- o.value('1m');
- o.value('5m');
- o.value('1h');
- o.value('2h');
- o.optional = true;
- o.rmempty = true;
-
/*
advanced log settings tab
*/
@@ -563,9 +553,6 @@ return view.extend({
o.rmempty = true;
}
- /*
- prepare country data
- */
let code, country, countries = [];
if (result[2]) {
countries = result[2].trim().split('\n');
@@ -611,17 +598,27 @@ return view.extend({
o.rmempty = false;
o = s.taboption('feeds', form.ListValue, 'ban_autoallowuplink', _('Auto Allow Uplink'), _('Limit the uplink autoallow function.'));
+ o.depends('ban_autoallowlist', '1');
o.value('disable', _('Disable'));
o.value('subnet', _('Subnet (default)'));
o.value('ip', _('IP'));
o.optional = true;
o.rmempty = true;
- o.depends('ban_autoallowlist', '1');
o = s.taboption('feeds', form.Flag, 'ban_autoblocklist', _('Auto Blocklist'), _('Automatically add resolved domains and suspicious IPs to the local banIP blocklist.'));
o.default = 1
o.rmempty = false;
+ 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');
+ o.value('5m');
+ o.value('1h');
+ o.value('2h');
+ o.value('1d');
+ o.optional = true;
+ o.rmempty = true;
+
o = s.taboption('feeds', form.Flag, 'ban_allowlistonly', _('Allowlist Only'), _('Restrict the internet access from/to a small number of secure IPs.'));
o.rmempty = false;