summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-06-17 10:53:24 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-06-17 10:53:24 +0000
commit648af42197fcd76481af57f1fb21d3c6d84720c7 (patch)
tree16a0a155c134813354dd087ad583afca422e567f /applications
parent354aeb44f67d716d44fa7c03617e48265a28dd3f (diff)
applications/luci-firewall: use neg_network_ip4addr datatype for masq_{src,dest}
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-firewall/luasrc/model/cbi/luci_fw/zone.lua4
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 30dc0084b..2bcb9a980 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 = "host" -- XXX: ipaddr & uciname
+msrc.datatype = "neg_network_ip4addr"
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 = "host" -- XXX: ipaddr & uciname
+mdest.datatype = "neg_network_ip4addr"
mdest.placeholder = "0.0.0.0/0"
mdest:depends("family", "")
mdest:depends("family", "ipv4")