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:
meeki007 2021-02-20 21:17:33 -05:00 committed by GitHub
parent 9430efe57a
commit 061de116fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
} }