fix unix socket is not working due to previous fix
This commit is contained in:
parent
b37f4dac42
commit
4d806f78dc
1 changed files with 3 additions and 1 deletions
|
@ -47,8 +47,10 @@ function connect(){
|
||||||
|
|
||||||
if(!client.port){
|
if(!client.port){
|
||||||
client.log('Connecting client on Unix Socket :'.debug, client.path.variable);
|
client.log('Connecting client on Unix Socket :'.debug, client.path.variable);
|
||||||
|
|
||||||
|
var path = client.path;
|
||||||
|
|
||||||
if (process.platform ==='win32' && !client.path.startsWith('\\\\.\\pipe\\')){
|
if (process.platform ==='win32' && !client.path.startsWith('\\\\.\\pipe\\')){
|
||||||
var path = client.path;
|
|
||||||
path = path.replace(/^\//, '');
|
path = path.replace(/^\//, '');
|
||||||
path = path.replace(/\//g, '-');
|
path = path.replace(/\//g, '-');
|
||||||
path= '\\\\.\\pipe\\'+path;
|
path= '\\\\.\\pipe\\'+path;
|
||||||
|
|
Loading…
Reference in a new issue