summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2019-06-04 22:07:24 +0200
committerGitHub <noreply@github.com>2019-06-04 22:07:24 +0200
commitbf06d8e13c325d66daa1cea96f122a5e11f33c0e (patch)
tree0d4e55e211d740470675283b7a64fbdbaa211f44
parent1152b759718621b7797111922c366c66b24dace0 (diff)
parent69f6a360845c0f212fa3f23a5ddb1dd07e6657e5 (diff)
Merge pull request #2744 from TDT-AG/pr/20190603-luci-app-mwan3
luci-app-mwan3: change flush_conntrack option to list option
-rw-r--r--applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua11
1 files changed, 5 insertions, 6 deletions
diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua
index c8f6104ea1..e70664d35c 100644
--- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua
+++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua
@@ -234,13 +234,12 @@ up:value("8")
up:value("9")
up:value("10")
-flush = mwan_interface:option(ListValue, "flush_conntrack", translate("Flush conntrack table"),
+flush = mwan_interface:option(StaticList, "flush_conntrack", translate("Flush conntrack table"),
translate("Flush global firewall conntrack table on interface events"))
-flush.default = "never"
-flush:value("ifup", translate("ifup"))
-flush:value("ifdown", translate("ifdown"))
-flush:value("never", translate("never"))
-flush:value("always", translate("always"))
+flush:value("ifup", translate("ifup (netifd)"))
+flush:value("ifdown", translate("ifdown (netifd)"))
+flush:value("connected", translate("connected (mwan3)"))
+flush:value("disconnected", translate("disconnected (mwan3)"))
metric = mwan_interface:option(DummyValue, "metric", translate("Metric"),
translate("This displays the metric assigned to this interface in /etc/config/network"))