diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-01-07 21:55:52 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-01-07 21:55:52 +0000 |
commit | e4dc649e82edf5aac0668b901eaa1641b388f02c (patch) | |
tree | dc521bf8da2c071ed8deeb539a35e7ffc1e8d064 /applications/luci-firewall/luasrc/model | |
parent | c043db651871e92b2cc8d5cde55655f72873931e (diff) |
applications/luci-firewall: fix datatype validation for masq src/dest; allow list of negated ucinames, hostnames, ip-ranges or -addresses
Diffstat (limited to 'applications/luci-firewall/luasrc/model')
-rw-r--r-- | applications/luci-firewall/luasrc/model/cbi/firewall/zone-details.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/applications/luci-firewall/luasrc/model/cbi/firewall/zone-details.lua b/applications/luci-firewall/luasrc/model/cbi/firewall/zone-details.lua index a8ae894417..0da146acef 100644 --- a/applications/luci-firewall/luasrc/model/cbi/firewall/zone-details.lua +++ b/applications/luci-firewall/luasrc/model/cbi/firewall/zone-details.lua @@ -2,6 +2,7 @@ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> +Copyright 2010-2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -136,7 +137,7 @@ msrc = s:taboption("advanced", DynamicList, "masq_src", translate("Restrict Masquerading to given source subnets")) msrc.optional = true -msrc.datatype = "neg_network_ip4addr" +msrc.datatype = "list(neg,network)" msrc.placeholder = "0.0.0.0/0" msrc:depends("family", "") msrc:depends("family", "ipv4") @@ -145,7 +146,7 @@ mdest = s:taboption("advanced", DynamicList, "masq_dest", translate("Restrict Masquerading to given destination subnets")) mdest.optional = true -mdest.datatype = "neg_network_ip4addr" +mdest.datatype = "list(neg,network)" mdest.placeholder = "0.0.0.0/0" mdest:depends("family", "") mdest:depends("family", "ipv4") |