mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Revert "the -W flag doesn't exist for ping6"
This reverts commit 6d7e77b360
.
This commit is contained in:
parent
114d070dc2
commit
4db5da1fbe
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue