mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add option to send mail when connection status change
This commit is contained in:
parent
80cb838778
commit
2679958caa
9 changed files with 155 additions and 0 deletions
|
@ -72,6 +72,10 @@ o:value("httping","httping")
|
|||
o:value("dns","dns")
|
||||
o:value("none","none")
|
||||
|
||||
o = s:option(Flag, "mail_alert", translate("Mail alert"), translate("Send a mail when connection state change"))
|
||||
o.rmempty = false
|
||||
o.default = false
|
||||
|
||||
o = s:option(DynamicList, "hosts", translate("Hosts"))
|
||||
o.placeholder = "4.2.2.1"
|
||||
o.default = { "4.2.2.1", "8.8.8.8" }
|
||||
|
@ -115,6 +119,10 @@ o:value("httping","httping")
|
|||
o:value("dns","dns")
|
||||
o:value("none","none")
|
||||
|
||||
o = s:option(Flag, "mail_alert", translate("Mail alert"), translate("Send a mail when connection status change"))
|
||||
o.rmempty = false
|
||||
o.default = false
|
||||
|
||||
o = s:option(DynamicList, "hosts", translate("Hosts"))
|
||||
o.placeholder = "4.2.2.1"
|
||||
o.default = { "4.2.2.1", "8.8.8.8" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue