diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2015-02-06 16:32:35 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2015-02-06 16:49:47 +0100 |
commit | 9dc9ec3ce6ba6f3dd4020e00f5863e207fa08a75 (patch) | |
tree | be767670aad4c051886dad61476883ae6971c096 | |
parent | e7573f9111f6b85c599ec225714d76e08ec8a4dc (diff) | |
download | node-new-9dc9ec3ce6ba6f3dd4020e00f5863e207fa08a75.tar.gz |
lib: make debug client connect to 127.0.0.1
On machines without network connectivity, a DNS lookup for 'localhost'
may fail. Connect to 127.0.0.1 to skip the host resolve step.
Fixes: https://github.com/iojs/io.js/issues/726
PR-URL: https://github.com/iojs/io.js/pull/741
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
-rw-r--r-- | lib/_debugger.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_debugger.js b/lib/_debugger.js index 955080ff2f..7881d722d5 100644 --- a/lib/_debugger.js +++ b/lib/_debugger.js @@ -1620,7 +1620,7 @@ Interface.prototype.trySpawn = function(cb) { var self = this, breakpoints = this.breakpoints || [], port = exports.port, - host = 'localhost', + host = '127.0.0.1', childArgs = this.args; this.killChild(); |