applications/luci-firewall: allow negations in all applicable fields (#468)
[project/luci.git] / applications / luci-firewall / luasrc / model / cbi / firewall / rule-details.lua
index 8a8ac32..0086148 100644 (file)
@@ -156,7 +156,7 @@ elseif rule_type == "redirect" then
 
        o.rmempty = true
        o.placeholder = translate("any")
 
        o.rmempty = true
        o.placeholder = translate("any")
-       o.datatype = "portrange"
+       o.datatype = "neg(portrange)"
 
 
        o = s:option(Value, "src_dip",
 
 
        o = s:option(Value, "src_dip",