Skip to content
Permalink
Browse files
[ARTEMIS-3799]: Ping command is wrong on Windows.
* Changing the default ping command for Windows.

Jira: https://issues.apache.org/jira/browse/ARTEMIS-3799
  • Loading branch information
ehsavoie authored and clebertsuconic committed Apr 25, 2022
1 parent 2f72b60 commit 33c4535fa5db18756c7d723063261e9874f02617
Showing 1 changed file with 1 addition and 1 deletion.
@@ -52,7 +52,7 @@ public class NetworkHealthCheck extends ActiveMQScheduledComponent {

public static final String IPV6_DEFAULT_COMMAND = "ping6 -c 1 %2$s";

public static final String IPV4_DEFAULT_COMMAND = Env.isMacOs() ? "ping -c 1 -t %d %s" : "ping -c 1 -w %d %s";
public static final String IPV4_DEFAULT_COMMAND = Env.isMacOs() ? "ping -c 1 -t %d %s" : Env.isLinuxOs() ? "ping -c 1 -w %d %s" : "ping -n 1 -w %d %s";

private String ipv4Command = IPV4_DEFAULT_COMMAND;

0 comments on commit 33c4535

Please sign in to comment.