mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add wait test after error support
This commit is contained in:
parent
285e371196
commit
2315b9c17f
2 changed files with 131 additions and 4 deletions
|
@ -35,6 +35,12 @@ o.default = "2"
|
|||
o.datatype = "range(1, 100)"
|
||||
o.rmempty = false
|
||||
|
||||
o = s:option(Value, "wait_test", translate("Wait after a failed test (s)"))
|
||||
o.placeholder = "0"
|
||||
o.default = "0"
|
||||
o.datatype = "range(0, 100)"
|
||||
o.rmempty = false
|
||||
|
||||
o = s:option(DynamicList, "hosts", translate("Hosts"), translate("IPs or domains must be available over http"))
|
||||
o.placeholder = "bing.com"
|
||||
o.default = { "bing.com", "google.com" }
|
||||
|
@ -72,6 +78,12 @@ o.default = "2"
|
|||
o.datatype = "range(1, 100)"
|
||||
o.rmempty = false
|
||||
|
||||
o = s:option(Value, "wait_test", translate("Wait after a failed test (s)"))
|
||||
o.placeholder = "0"
|
||||
o.default = "0"
|
||||
o.datatype = "range(0, 100)"
|
||||
o.rmempty = false
|
||||
|
||||
s = m:section(TypedSection, "defaults", translate("Defaults Settings"), translate("OMR-Tracker create needed routes and detect when a connection is down or up"))
|
||||
s.anonymous = true
|
||||
|
||||
|
@ -96,6 +108,12 @@ o.default = "2"
|
|||
o.datatype = "range(1, 100)"
|
||||
o.rmempty = false
|
||||
|
||||
o = s:option(Value, "wait_test", translate("Wait after a failed test (s)"))
|
||||
o.placeholder = "0"
|
||||
o.default = "0"
|
||||
o.datatype = "range(0, 100)"
|
||||
o.rmempty = false
|
||||
|
||||
o = s:option(ListValue, "type", translate("Type"), translate("Always ping gateway, then test connection by ping, httping or dns. None mode only ping gateway."))
|
||||
o:value("ping","ping")
|
||||
o:value("httping","httping")
|
||||
|
@ -146,6 +164,12 @@ o.default = "2"
|
|||
o.datatype = "range(1, 100)"
|
||||
o.rmempty = false
|
||||
|
||||
o = s:option(Value, "wait_test", translate("Wait after a failed test (s)"))
|
||||
o.placeholder = "0"
|
||||
o.default = "0"
|
||||
o.datatype = "range(0, 100)"
|
||||
o.rmempty = false
|
||||
|
||||
o = s:option(ListValue, "type", translate("Type"), translate("Always ping gateway, then test connection by ping, httping or dns. None mode only ping gateway."))
|
||||
o:value("ping","ping")
|
||||
o:value("httping","httping")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue