diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-06-17 00:28:52 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-06-17 00:28:52 +0000 |
commit | 7dbb07ff6f6c6ef26af7c02c26edb507f88d5471 (patch) | |
tree | 27d2f439546919b097931e5802a32e7316fea2e1 | |
parent | be2ae705faab82f3ea4172bfdc5c49a638f277af (diff) |
applications/luci-firewall: relax masq_{src,dest} validation to allow for interface names
-rw-r--r-- | applications/luci-firewall/luasrc/model/cbi/luci_fw/zone.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-firewall/luasrc/model/cbi/luci_fw/zone.lua b/applications/luci-firewall/luasrc/model/cbi/luci_fw/zone.lua index 30fcd476bd..30dc0084bc 100644 --- a/applications/luci-firewall/luasrc/model/cbi/luci_fw/zone.lua +++ b/applications/luci-firewall/luasrc/model/cbi/luci_fw/zone.lua @@ -129,7 +129,7 @@ msrc = s:taboption("advanced", DynamicList, "masq_src", translate("Restrict Masquerading to given source subnets")) msrc.optional = true -msrc.datatype = "neg_ip4addr" +msrc.datatype = "host" -- XXX: ipaddr & uciname msrc.placeholder = "0.0.0.0/0" msrc:depends("family", "") msrc:depends("family", "ipv4") @@ -138,7 +138,7 @@ mdest = s:taboption("advanced", DynamicList, "masq_dest", translate("Restrict Masquerading to given destination subnets")) mdest.optional = true -mdest.datatype = "neg_ip4addr" +mdest.datatype = "host" -- XXX: ipaddr & uciname mdest.placeholder = "0.0.0.0/0" mdest:depends("family", "") mdest:depends("family", "ipv4") |