livebox now longer answer to ping6 on LAN :(
This commit is contained in:
parent
60b13d46f7
commit
31f5e94ae1
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user