Skip to content
Permalink
Browse files
ARTEMIS-3799 Fix default ping command pipe error for Windows
  • Loading branch information
brusdev committed Apr 27, 2022
1 parent eb62642 commit 72251dc94798cd1c964286118b4bd206d497ebcd
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" : 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;

0 comments on commit 72251dc

Please sign in to comment.