[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:
parent
2f72b6068d
commit
33c4535fa5
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue