Browse Source

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>
v1.8.0-commit
Ben Noordhuis 10 years ago
parent
commit
9dc9ec3ce6
  1. 2
      lib/_debugger.js

2
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();

Loading…
Cancel
Save