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:
Родитель
e7573f9111
Коммит
9dc9ec3ce6
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче