From 05749a02fdf4b1664d101195cd36815890d6f593 Mon Sep 17 00:00:00 2001 From: Brandon Nozaki Miller Date: Fri, 24 Jul 2015 12:13:53 -0700 Subject: [PATCH] fixed localhost default handling for windows when network card is off. --- node-ipc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node-ipc.js b/node-ipc.js index 5c4c9d7..fc573d5 100644 --- a/node-ipc.js +++ b/node-ipc.js @@ -21,7 +21,7 @@ colors.setTheme( var defaults={ appspace : 'app.', socketRoot : '/tmp/', - networkHost : 'localhost', + networkHost : '127.0.0.1', networkPort : 8000, id : os.hostname(), encoding : 'utf8', @@ -295,4 +295,4 @@ function connectNet(id,host,port,callback){ callback(ipc); } -module.exports=ipc; \ No newline at end of file +module.exports=ipc;