mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user