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:
Ben Noordhuis 2015-02-06 16:32:35 +01:00
Родитель e7573f9111
Коммит 9dc9ec3ce6
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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