Revert "the -W flag doesn't exist for ping6"

This reverts commit 6d7e77b360.
This commit is contained in:
Tagadda 2022-03-08 11:54:18 +00:00
parent 114d070dc2
commit 4db5da1fbe

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 %s >/dev/null 2>/dev/null" "ping%s -c1 -W 3 %s >/dev/null 2>/dev/null"
% ("" if protocol == 4 else "6", target) % ("" if protocol == 4 else "6", target)
) )
== 0 == 0