diff --git a/lib/client.js b/lib/client.js index b066d07..13c2a07 100644 --- a/lib/client.js +++ b/lib/client.js @@ -47,7 +47,7 @@ function connect(){ if(!client.port){ client.log('Connecting client on Unix Socket :'.debug, client.path.variable); - if (process.platform ==='win32'){ + if (process.platform ==='win32' && !client.path.startsWith('\\\\.\\pipe\\')){ client.path = client.path.replace(/^\//, ''); client.path = client.path.replace(/\//g, '-'); client.path= '\\\\.\\pipe\\'+client.path;