Skip to content

Commit 9dc9ec3

Browse files
committed
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: #726 PR-URL: #741 Reviewed-By: Colin Ihrig <[email protected]>
1 parent e7573f9 commit 9dc9ec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_debugger.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,7 @@ Interface.prototype.trySpawn = function(cb) {
16201620
var self = this,
16211621
breakpoints = this.breakpoints || [],
16221622
port = exports.port,
1623-
host = 'localhost',
1623+
host = '127.0.0.1',
16241624
childArgs = this.args;
16251625

16261626
this.killChild();

0 commit comments

Comments
 (0)