From 9b1f4dfee38395e99009be5f1276153d2d052506 Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Sun, 1 Jul 2012 00:01:38 +0000 Subject: contrib/freifunk-policyrouting: Fix deletion of rules; add fallback option to use the mesh gateway if the own gateway is not available --- .../luasrc/model/cbi/freifunk/policyrouting.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'applications/luci-freifunk-policyrouting/luasrc') diff --git a/applications/luci-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua b/applications/luci-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua index b3cac9a10..4361eb782 100644 --- a/applications/luci-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua +++ b/applications/luci-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua @@ -28,6 +28,10 @@ local strict = c:option(Flag, "strict", translate("Strict Filtering"), translate "select this option.")) strict.rmempty = false +local fallback = c:option(Flag, "fallback", translate("Fallback to mesh"), + translate("If your own gateway is not available then fallback to the mesh default gateway.")) +strict.rmempty = false + local zones = c:option(MultiValue, "zones", translate("Firewall zones"), translate("All traffic from interfaces belonging to these zones will be sent via ".. "a gateway in the mesh network.")) uci:foreach("firewall", "zone", function(section) -- cgit v1.2.3