diff --git a/net/mwan3-luci/Makefile b/net/mwan3-luci/Makefile index 25ae76763..49a3f02d8 100644 --- a/net/mwan3-luci/Makefile +++ b/net/mwan3-luci/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-mwan3 PKG_VERSION:=1.3 -PKG_RELEASE:=2 +PKG_RELEASE:=4 PKG_MAINTAINER:=Aedan Renner PKG_LICENSE:=GPLv2 diff --git a/net/mwan3-luci/files/etc/hotplug.d/iface/16-mwan3custombak b/net/mwan3-luci/files/etc/hotplug.d/iface/16-mwan3custombak index 954d1ad86..fabd5f3fc 100755 --- a/net/mwan3-luci/files/etc/hotplug.d/iface/16-mwan3custombak +++ b/net/mwan3-luci/files/etc/hotplug.d/iface/16-mwan3custombak @@ -7,6 +7,7 @@ send_alert() { # variable "$1" stores the mwan3 status information # insert your code here to send the contents of "$1" + echo "$1" } gather_event_info() diff --git a/net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan3/mwan3_policy.lua b/net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan3/mwan3_policy.lua index ef09451fb..84d610f61 100644 --- a/net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan3/mwan3_policy.lua +++ b/net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan3/mwan3_policy.lua @@ -72,12 +72,12 @@ last_resort = mwan_policy:option(DummyValue, "last_resort", translate("Last reso last_resort.rawhtml = true function last_resort.cfgvalue(self, s) local str = self.map:get(s, "last_resort") - if str == "unreachable" or str == "" or str == null then - return "unreachable (reject)" - elseif str == "blackhole" then + if str == "blackhole" then return "blackhole (drop)" - elseif str == "main" then - return "main (use main routing table)" + elseif str == "default" then + return "default (use main routing table)" + else + return "unreachable (reject)" end end diff --git a/net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan3/mwan3_policyconfig.lua b/net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan3/mwan3_policyconfig.lua index dfd725337..ddcff5794 100644 --- a/net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan3/mwan3_policyconfig.lua +++ b/net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan3/mwan3_policyconfig.lua @@ -50,7 +50,7 @@ last_resort = mwan_policy:option(ListValue, "last_resort", translate("Last resor last_resort.default = "unreachable" last_resort:value("unreachable", translate("unreachable (reject)")) last_resort:value("blackhole", translate("blackhole (drop)")) - last_resort:value("main", translate("main (use main routing table)")) + last_resort:value("default", translate("default (use main routing table)")) -- ------ currently configured members ------ -- diff --git a/net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan3/mwan3_ruleconfig.lua b/net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan3/mwan3_ruleconfig.lua index 21a01b863..404c27f8b 100644 --- a/net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan3/mwan3_ruleconfig.lua +++ b/net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan3/mwan3_ruleconfig.lua @@ -83,8 +83,9 @@ proto = mwan_rule:option(Value, "proto", translate("Protocol"), use_policy = mwan_rule:option(Value, "use_policy", translate("Policy assigned")) cbi_add_policy(use_policy) - use_policy:value("unreachable") - use_policy:value("default") + use_policy:value("unreachable", translate("unreachable (reject)")) + use_policy:value("blackhole", translate("blackhole (drop)")) + use_policy:value("default", translate("default (use main routing table)")) -- ------ currently configured policies ------ --