livebox now longer answer to ping6 on LAN :(

This commit is contained in:
Gilles Grandou 2022-01-14 19:02:07 +01:00
parent 60b13d46f7
commit 31f5e94ae1

View File

@ -68,7 +68,7 @@ def load_conf():
def ping(hostname): def ping(hostname):
cmd = "ping -c1 -w3 %s" % hostname cmd = "ping -4 -c1 -w3 %s" % hostname
ret = subprocess.run(cmd.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) ret = subprocess.run(cmd.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
return 0 if ret.returncode else 1 return 0 if ret.returncode else 1