summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3/luasrc/model/cbi/mwan
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-09-27 10:52:01 +0200
committerGitHub <noreply@github.com>2018-09-27 10:52:01 +0200
commit874faa9223752ebf043e5e639de7f233aef8da83 (patch)
tree78fe718bf4ce3a162735d3bc2c2809cbb5338b65 /applications/luci-app-mwan3/luasrc/model/cbi/mwan
parent20fc7c4c2111b18509195ef37d7bd759aa8ebeb4 (diff)
parent5d8b64f414ff97c717f759ede569959e9eac4424 (diff)
Merge pull request #2185 from TDT-AG/pr/20180927-luci-app-mwan3
luci-app-mwan3: start adding german translation a new max_ttl option
Diffstat (limited to 'applications/luci-app-mwan3/luasrc/model/cbi/mwan')
-rw-r--r--applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua12
1 files changed, 12 insertions, 0 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 d01945bf4a..ed9d94ac7e 100644
--- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua
+++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua
@@ -66,6 +66,18 @@ size.datatype = "range(1, 65507)"
size.rmempty = false
size.optional = false
+max_ttl = mwan_interface:option(Value, "max_ttl", translate("Max TTL"))
+max_ttl.default = "60"
+max_ttl:depends("track_method", "ping")
+max_ttl:value("10")
+max_ttl:value("20")
+max_ttl:value("30")
+max_ttl:value("40")
+max_ttl:value("50")
+max_ttl:value("60")
+max_ttl:value("70")
+max_ttl.datatype = "range(1, 255)"
+
check_quality = mwan_interface:option(Flag, "check_quality", translate("Check link quality"))
check_quality:depends("track_method", "ping")
check_quality.default = false