From 9fd7422efd2e77bdd13223d5aa982159bb525f28 Mon Sep 17 00:00:00 2001 From: Hayot Ismatov Date: Wed, 9 Mar 2016 14:37:29 +0500 Subject: [PATCH] Update traceroute.js --- traceroute.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/traceroute.js b/traceroute.js index a46a088..fe94ae4 100644 --- a/traceroute.js +++ b/traceroute.js @@ -25,7 +25,7 @@ internals.Traceroute.trace = function (host, callback) { return callback(new Error('Invalid host')); } - const command = (internals.isWin ? 'tracert -d ' : 'traceroute -q 1 -n ') + host; + const command = (internals.isWin ? 'tracert ' : 'traceroute -q 1 ') + host; Child.exec(command, (err, stdout, stderr) => { if (err) { @@ -111,7 +111,7 @@ internals.parseOutput = function (output) { break; } } - lines.splice(0,i); + //lines.splice(0,i); lines.pop(); lines.pop(); }