mirror of
https://github.com/danbulant/node-x11
synced 2026-06-17 21:51:17 +00:00
bug in port calculation
This commit is contained in:
parent
24761ec261
commit
d2a56871d2
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue