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