Skip to content

Commit 24a7788

Browse files
committed
Fixed ping command
1 parent 33f207d commit 24a7788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/stealthcopter/networktools/ping/PingNative.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static PingResult ping(InetAddress host, PingOptions pingOptions) throws
4646
address = host.getHostName();
4747
}
4848

49-
Process proc = runtime.exec(pingCommand + " -c 1 -w " + timeoutSeconds + " -w" + ttl + " " + address);
49+
Process proc = runtime.exec(pingCommand + " -c 1 -W " + timeoutSeconds + " -t " + ttl + " " + address);
5050
proc.waitFor();
5151
int exit = proc.exitValue();
5252
String pingError;

0 commit comments

Comments
 (0)