From 5d8b64f414ff97c717f759ede569959e9eac4424 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 7 May 2018 14:51:36 +0200 Subject: [PATCH] luci-app-mwan3: add new max_ttl option Signed-off-by: Florian Eckert --- .../luasrc/model/cbi/mwan/interfaceconfig.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- 2.30.2