Comparing version 0.1.4 to 0.1.5
@@ -37,4 +37,12 @@ /** | ||
/*ls.stdout.on('data', function (data) { | ||
//sys.print('stdout: ' + data); | ||
ls.stdout.on('data', function (data) { | ||
// workaround for windows machines | ||
// if host is unreachable ping will return | ||
// a successfull error code | ||
// so we ned to handle this ourself | ||
var s = String(data); | ||
if (s.indexOf("unreachable") != -1) { | ||
cb && cb(false); | ||
cb = undefined; | ||
} | ||
}); | ||
@@ -41,0 +49,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "a simple wrapper for ping", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"homepage": "http://github.com/danielzzz/node-ping", | ||
@@ -8,0 +8,0 @@ "repository": { |
4338
94