luci-app-firewall: don't allow configuring src_mac for snat rules
This commit is contained in:
parent
35de3b7411
commit
a6becaf5b5
1 changed files with 0 additions and 10 deletions
|
@ -106,16 +106,6 @@ elseif rule_type == "redirect" then
|
||||||
o.template = "cbi/firewall_zonelist"
|
o.template = "cbi/firewall_zonelist"
|
||||||
|
|
||||||
|
|
||||||
o = s:option(DynamicList, "src_mac", translate("Source MAC address"))
|
|
||||||
o.rmempty = true
|
|
||||||
o.datatype = "neg(macaddr)"
|
|
||||||
o.placeholder = translate("any")
|
|
||||||
|
|
||||||
luci.sys.net.mac_hints(function(mac, name)
|
|
||||||
o:value(mac, "%s (%s)" %{ mac, name })
|
|
||||||
end)
|
|
||||||
|
|
||||||
|
|
||||||
o = s:option(Value, "src_ip", translate("Source IP address"))
|
o = s:option(Value, "src_ip", translate("Source IP address"))
|
||||||
o.rmempty = true
|
o.rmempty = true
|
||||||
o.datatype = "neg(ipaddr)"
|
o.datatype = "neg(ipaddr)"
|
||||||
|
|
Loading…
Reference in a new issue