diff --git a/lib/client.js b/lib/client.js index e16601f..0ebcd49 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;