From f64b3d509446cc78a7df746b174bdab330f23ab2 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 1 Mar 2021 15:18:25 +0100 Subject: luci-app-firewall: allow negative prefix lengths Fixes: #4812 Signed-off-by: Jo-Philipp Wich --- .../luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-app-firewall/htdocs/luci-static/resources/tools') 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) { -- cgit v1.2.3