From 0ad4a7bc4dd9615030c8d265b6be272c771b9f40 Mon Sep 17 00:00:00 2001 From: Julian Hille Date: Mon, 6 Feb 2017 23:13:19 +0100 Subject: [PATCH] Add freebsd as a valid platform (#274) Freebsd ping command equals darwins ping command --- 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 a8999a73..84fb577e 100644 --- a/io/ping/88-ping.js +++ b/io/ping/88-ping.js @@ -14,7 +14,7 @@ module.exports = function(RED) { var ex; if (plat == "linux") { ex = spawn('ping', ['-n', '-w', '5', '-c', '1', node.host]); } else if (plat.match(/^win/)) { ex = spawn('ping', ['-n', '1', '-w', '5000', node.host]); } - else if (plat == "darwin") { ex = spawn('ping', ['-n', '-t', '5', '-c', '1', node.host]); } + else if (plat == "darwin" || plat == "freebsd") { ex = spawn('ping', ['-n', '-t', '5', '-c', '1', node.host]); } else { node.error("Sorry - your platform - "+plat+" - is not recognised."); } var res = false; var line = "";