luci-firewall: Add support for negations for ip addresses/nets (#218)
[project/luci.git] / applications / luci-firewall / luasrc / model / cbi / luci_fw / rrule.lua
index 65e3e58..ddecad3 100644 (file)
@@ -53,10 +53,6 @@ s.addremove = false
 s:tab("general", translate("General Settings"))
 s:tab("advanced", translate("Advanced Settings"))
 
-back = s:taboption("general", DummyValue, "_overview", translate("Overview"))
-back.value = ""
-back.titleref = luci.dispatcher.build_url("admin", "network", "firewall", "redirect")
-
 name = s:taboption("general", Value, "_name", translate("Name"))
 name.rmempty = true
 name.size = 10
@@ -125,7 +121,7 @@ src_mac.placeholder = translate("any")
 
 src_ip = s:taboption("advanced", Value, "src_ip", translate("Source IP address"))
 src_ip.optional = true
-src_ip.datatype = "ip4addr"
+src_ip.datatype = "neg_ip4addr"
 src_ip.placeholder = translate("any")
 
 sport = s:taboption("advanced", Value, "src_port", translate("Source port"),