applications/luci-firewall: relax masq_{src,dest} validation to allow for interface...
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 17 Jun 2011 00:28:52 +0000 (00:28 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 17 Jun 2011 00:28:52 +0000 (00:28 +0000)
applications/luci-firewall/luasrc/model/cbi/luci_fw/zone.lua

index 30fcd476bd967c1d3ee75efe9fe1254711cb10a4..30dc0084bcdc3e55f9d7ac27f88865314578c4e4 100644 (file)
@@ -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")