Skip to content

Commit

Permalink
Fix ping call error
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardonunesdev committed Jul 29, 2017
1 parent bfc7b96 commit fe51da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function pingDomain(domain) {
return new Promise((resolve, reject) => {
dns.lookup(domain, (error, ip, family) => {
if (error) { return reject(error); }
ping.promises.probe(ip, (isAlive) => {
ping.promise.probe(ip, (isAlive) => {
console.log(domain+' - '+ip+' - '+(isAlive ? 'up' : 'down'));
return resolve();
});
Expand Down

0 comments on commit fe51da5

Please sign in to comment.