the -W flag doesn't exist for ping6

This commit is contained in:
Tagadda 2022-03-06 08:34:12 +00:00
parent d216d06c8c
commit 6d7e77b360

View file

@ -176,7 +176,7 @@ class MyDiagnoser(Diagnoser):
def ping(protocol, target): def ping(protocol, target):
return ( return (
os.system( os.system(
"ping%s -c1 -W 3 %s >/dev/null 2>/dev/null" "ping%s -c1 %s >/dev/null 2>/dev/null"
% ("" if protocol == 4 else "6", target) % ("" if protocol == 4 else "6", target)
) )
== 0 == 0