[ARTEMIS-3799]: Ping command is wrong on Windows.

* Changing the default ping command for Windows.

Jira: https://issues.apache.org/jira/browse/ARTEMIS-3799
This commit is contained in:
Emmanuel Hugonnet 2022-04-25 18:01:20 +02:00 committed by clebertsuconic
parent 2f72b6068d
commit 33c4535fa5
1 changed files with 1 additions and 1 deletions

View File

@ -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 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; private String ipv4Command = IPV4_DEFAULT_COMMAND;