summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2018-05-07 14:51:36 +0200
committerFlorian Eckert <fe@dev.tdt.de>2018-09-27 08:50:31 +0200
commit5d8b64f414ff97c717f759ede569959e9eac4424 (patch)
tree4616cada1d07c897ba1cb220f80dfc82be87c6dc /applications
parent4032c335e0814fd25b6ba8896d41c6213550b816 (diff)
luci-app-mwan3: add new max_ttl option
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications')
-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