luci-app-firewall: allow negative prefix lengths
[project/luci.git] / applications / luci-app-firewall / htdocs / luci-static / resources / view / firewall / zones.js
index b319a4b849e1f111aded4115fa2ac302890bdbcc..f9d84bfb673ceb357629b9d647fa660b8af8767b 100644 (file)
@@ -224,7 +224,7 @@ return view.extend({
                o.multiple = true;
 
                o = s.taboption('advanced', form.DynamicList, 'subnet', _('Covered subnets'), _('Use this option to classify zone traffic by source or destination subnet instead of networks or devices.'));
-               o.datatype = 'neg(cidr)';
+               o.datatype = 'neg(cidr("true"))';
                o.modalonly = true;
                o.multiple = true;