From 9dc9ec3ce6ba6f3dd4020e00f5863e207fa08a75 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 6 Feb 2015 16:32:35 +0100 Subject: [PATCH] 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 --- lib/_debugger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_debugger.js b/lib/_debugger.js index 955080ff2fe8cd..7881d722d585b0 100644 --- a/lib/_debugger.js +++ b/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();