also listen on IPv6
This commit is contained in:
@@ -165,13 +165,15 @@ def pushover(msg):
|
|||||||
if not SEND_PUSHOVER:
|
if not SEND_PUSHOVER:
|
||||||
return
|
return
|
||||||
conn = httplib.HTTPSConnection("api.pushover.net:443")
|
conn = httplib.HTTPSConnection("api.pushover.net:443")
|
||||||
conn.request("POST", "/1/messages.json",
|
try:
|
||||||
urllib.urlencode({
|
conn.request("POST", "/1/messages.json",
|
||||||
"token": "ac7NLX2rPjXFareeDgLpXNoDf4iFmf",
|
urllib.urlencode({
|
||||||
"user": "uDhH33UjQQDYtNzJb1ThRiWb9ingGK",
|
"token": "ac7NLX2rPjXFareeDgLpXNoDf4iFmf",
|
||||||
"message": msg,
|
"user": "uDhH33UjQQDYtNzJb1ThRiWb9ingGK",
|
||||||
}), { "Content-type": "application/x-www-form-urlencoded" })
|
"message": msg, }), { "Content-type": "application/x-www-form-urlencoded" })
|
||||||
conn.getresponse()
|
conn.getresponse()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
# nsupdate: set the DNS A record for a fqdn
|
# nsupdate: set the DNS A record for a fqdn
|
||||||
|
|||||||
Reference in New Issue
Block a user