1
0
Fork 0
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:
Ycarus 2018-11-05 19:14:23 +01:00
parent 80cb838778
commit 2679958caa
9 changed files with 155 additions and 0 deletions

View file

@ -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" }