Merge pull request #44 from Kanaye/patch-1

Fixed bug with 'UNIX' sockets on windows.
nice fix! @Kanaye
This commit is contained in:
Brandon Nozaki Miller 2015-11-18 03:04:43 -08:00
commit d46e755dc7

View file

@ -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;