also listen on IPv6

This commit is contained in:
2015-01-06 15:44:22 +01:00
parent 637123a780
commit d0a98d9b0e
+4 -2
View File
@@ -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")
try:
conn.request("POST", "/1/messages.json", conn.request("POST", "/1/messages.json",
urllib.urlencode({ urllib.urlencode({
"token": "ac7NLX2rPjXFareeDgLpXNoDf4iFmf", "token": "ac7NLX2rPjXFareeDgLpXNoDf4iFmf",
"user": "uDhH33UjQQDYtNzJb1ThRiWb9ingGK", "user": "uDhH33UjQQDYtNzJb1ThRiWb9ingGK",
"message": msg, "message": msg, }), { "Content-type": "application/x-www-form-urlencoded" })
}), { "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