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