From 061de116fd464e7a713269e4d845f5bdb5f3671a Mon Sep 17 00:00:00 2001 From: meeki007 <5952964+meeki007@users.noreply.github.com> Date: Sat, 20 Feb 2021 21:17:33 -0500 Subject: [PATCH] ipv6 support Mac / freebsd can't use timeout , X , option for ping6. just have to leave it up to ```JS var spawnTout ``` to do the job --- io/ping/88-ping.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/ping/88-ping.js b/io/ping/88-ping.js index faf37424..1385a2cb 100644 --- a/io/ping/88-ping.js +++ b/io/ping/88-ping.js @@ -126,7 +126,7 @@ module.exports = function(RED) { if (plat == "linux" || plat == "android") { commandLineOptions = ["-n", "-w", timeoutS, "-c", "1"]; } else if (plat == "darwin" || plat == "freebsd") { - commandLineOptions = ["-n", "-X", timeoutS, "-c", "1"] //NOTE: dont know if -X works on mac OSX + commandLineOptions = ["-n", "-c", "1"] //NOTE: dont know if -X works on mac OSX } else { node.error("Sorry IPv6 on your platform - "+plat+" - is not supported.", msg); }