diff options
author | Florian Eckert <fe@dev.tdt.de> | 2019-11-11 10:15:05 +0100 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2019-11-13 13:25:39 +0100 |
commit | f773e33d8123f5c5b85d40ef18878c9c04d9f0e9 (patch) | |
tree | fe342fe98eb84186192bf9a79bb323b8fd0d4a38 /applications/luci-app-mwan3/luasrc/model | |
parent | 8da8f38bf97c925f6f113d3b4793edb23e7e0dc2 (diff) |
luci-app-mwan3: add new httping_ssl option
Add the new possibilty to ping https targets with httping.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-mwan3/luasrc/model')
-rw-r--r-- | applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua | 5 |
1 files changed, 5 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 e70664d35c..d2d3b950a8 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua @@ -9,6 +9,7 @@ local track_method, reliability, count, size, max_ttl local check_quality, failure_latency, failure_loss, recovery_latency local recovery_loss, timeout, interval, failure local keep_failure, recovery, down, up, flush, metric +local httping_ssl arg[1] = arg[1] or "" @@ -55,6 +56,10 @@ if os.execute("which httping 1>/dev/null") == 0 then track_method:value("httping") end +httping_ssl = mwan_interface:option(Flag, "httping_ssl", translate("Enable ssl tracking"), + translate("Enables https tracking on ssl port 443")) +httping_ssl:depends("track_method", "httping") + reliability = mwan_interface:option(Value, "reliability", translate("Tracking reliability"), translate("Acceptable values: 1-100. This many Tracking IP addresses must respond for the link to be deemed up")) reliability.datatype = "range(1, 100)" |