Cron check google

This commit is contained in:
yago
2014-12-22 22:12:28 +01:00
parent 6bc4829788
commit 8ca367e83b
2 changed files with 4 additions and 4 deletions

View File

@@ -1,10 +1,10 @@
socket = require("socket")
function cron()
-- Checks a TCP connexion
-- Use yours desired web and id
local addr = "gul.es"
local addr = "www.google.com"
local dest = "user#id"..our_id
-- Checks a TCP connexion
local connexion = socket.connect(addr, 80)
if not connexion then
local text = "ALERT: "..addr.." is offline"