o = s:option(Value, "src_port", translate("Source port"))
- o.datatype = "list(neg,portrange)"
+ o.datatype = "list(neg(portrange))"
o.placeholder = translate("any")
o = s:option(Value, "dest_port", translate("Destination port"))
- o.datatype = "list(neg,portrange)"
+ o.datatype = "list(neg(portrange))"
o.placeholder = translate("any")
translate("Restrict Masquerading to given source subnets"))
msrc.optional = true
-msrc.datatype = "list(neg,network)"
+msrc.datatype = "list(neg(or(uciname,hostname,ip4addr)))"
msrc.placeholder = "0.0.0.0/0"
msrc:depends("family", "")
msrc:depends("family", "ipv4")
translate("Restrict Masquerading to given destination subnets"))
mdest.optional = true
-mdest.datatype = "list(neg,network)"
+mdest.datatype = "list(neg(or(uciname,hostname,ip4addr)))"
mdest.placeholder = "0.0.0.0/0"
mdest:depends("family", "")
mdest:depends("family", "ipv4")