summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-firewall
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-03-19 16:32:41 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-03-19 16:32:41 +0000
commita6becaf5b5d12eedb3902e33a61540e757abafde (patch)
tree3c9d09a181eedbca0b6471a1de2bd0a215352fc3 /applications/luci-firewall
parent35de3b741100f24463e80dcd9458838a88d0d871 (diff)
luci-app-firewall: don't allow configuring src_mac for snat rules
Diffstat (limited to 'applications/luci-firewall')
-rw-r--r--applications/luci-firewall/luasrc/model/cbi/firewall/rule-details.lua10
1 files changed, 0 insertions, 10 deletions
diff --git a/applications/luci-firewall/luasrc/model/cbi/firewall/rule-details.lua b/applications/luci-firewall/luasrc/model/cbi/firewall/rule-details.lua
index 0086148c76..3f5eb35b20 100644
--- a/applications/luci-firewall/luasrc/model/cbi/firewall/rule-details.lua
+++ b/applications/luci-firewall/luasrc/model/cbi/firewall/rule-details.lua
@@ -106,16 +106,6 @@ elseif rule_type == "redirect" then
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.rmempty = true
o.datatype = "neg(ipaddr)"