ARTEMIS-3799 Fix default ping command pipe error for Windows
This commit is contained in:
parent
eb6264239e
commit
72251dc947
|
@ -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" : Env.isWindowsOs() ? "ping -n 1 -w %d %s | findstr /i TTL" : "ping -c 1 -w %d %s";
|
public static final String IPV4_DEFAULT_COMMAND = Env.isMacOs() ? "ping -c 1 -t %d %s" : Env.isWindowsOs() ? "cmd /C ping -n 1 -w %d %s | findstr /i TTL" : "ping -c 1 -w %d %s";
|
||||||
|
|
||||||
private String ipv4Command = IPV4_DEFAULT_COMMAND;
|
private String ipv4Command = IPV4_DEFAULT_COMMAND;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue