summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-03-01 15:18:25 +0100
committerJo-Philipp Wich <jo@mein.io>2021-03-01 15:18:25 +0100
commitf64b3d509446cc78a7df746b174bdab330f23ab2 (patch)
tree1bf5a96690dbcc1b1f02502d0f2cb314f50d0b58 /applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js
parentcd06e708d8d8037486b77dab3389ca91a88f2dd0 (diff)
luci-app-firewall: allow negative prefix lengths
Fixes: #4812 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js')
-rw-r--r--applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js b/applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js
index bc3dc12c99..ebdd345c98 100644
--- a/applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js
+++ b/applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js
@@ -444,7 +444,7 @@ return baseclass.extend({
var o = s.taboption(tab, multiple ? this.CBIDynamicMultiValueList : form.Value, name, label, description);
o.modalonly = true;
- o.datatype = 'list(neg(ipmask))';
+ o.datatype = 'list(neg(ipmask("true")))';
o.placeholder = multiple ? _('-- add IP --') : _('any');
if (family != null) {