mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
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
This commit is contained in:
parent
9430efe57a
commit
061de116fd
@ -126,7 +126,7 @@ module.exports = function(RED) {
|
|||||||
if (plat == "linux" || plat == "android") {
|
if (plat == "linux" || plat == "android") {
|
||||||
commandLineOptions = ["-n", "-w", timeoutS, "-c", "1"];
|
commandLineOptions = ["-n", "-w", timeoutS, "-c", "1"];
|
||||||
} else if (plat == "darwin" || plat == "freebsd") {
|
} 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 {
|
} else {
|
||||||
node.error("Sorry IPv6 on your platform - "+plat+" - is not supported.", msg);
|
node.error("Sorry IPv6 on your platform - "+plat+" - is not supported.", msg);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user