From d2a56871d2e21157c5c1bf460385061f5364c5ef Mon Sep 17 00:00:00 2001 From: sidorares Date: Mon, 1 Aug 2011 16:42:30 +1000 Subject: [PATCH] bug in port calculation --- lib/x11/xcore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/x11/xcore.js b/lib/x11/xcore.js index 3ab66ee..4a2ace1 100644 --- a/lib/x11/xcore.js +++ b/lib/x11/xcore.js @@ -329,7 +329,7 @@ module.exports.createClient = function(initCb, display) var defaultTransportName = platformDefaultTransport[process.platform]; // use tcp if stated explicitly or if not defined at all if (!defaultTransportName || defaultTransportName == 'tcp' || host != '127.0.0.1') - stream = net.createConnection(6000 + displayNum, host); + stream = net.createConnection(6000 + parseInt(displayNum), host); if (defaultTransportName == 'unix' && host == '127.0.0.1') stream = net.createConnection('/tmp/.X11-unix/X' + displayNum);