Merge pull request #44 from Kanaye/patch-1
Fixed bug with 'UNIX' sockets on windows. nice fix! @Kanaye
This commit is contained in:
commit
d46e755dc7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue