mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	| @@ -12,7 +12,7 @@ module.exports = function(RED) { | ||||
|  | ||||
|         node.tout = setInterval(function() { | ||||
|             var ex; | ||||
|             if (plat == "linux") { ex = spawn('ping', ['-n', '-w', '5', '-c', '1', node.host]); } | ||||
|             if (plat == "linux" || plat == "android") { 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" || plat == "freebsd") { ex = spawn('ping', ['-n', '-t', '5', '-c', '1', node.host]); } | ||||
|             else { node.error("Sorry - your platform - "+plat+" - is not recognised."); } | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| { | ||||
|     "name"          : "node-red-node-ping", | ||||
|     "version"       : "0.0.14", | ||||
|     "version"       : "0.0.15", | ||||
|     "description"   : "A Node-RED node to ping a remote server, for use as a keep-alive check.", | ||||
|     "dependencies"  : { | ||||
|     }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user