Skip to content

Commit

Permalink
lib: make debug client connect to 127.0.0.1
Browse files Browse the repository at this point in the history
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: #726
PR-URL: #741
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
bnoordhuis committed Feb 6, 2015
1 parent e7573f9 commit 9dc9ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9dc9ec3

Please sign in to comment.