Merge pull request #51 from Gloridea/master
fix - Can't connect to server on retry due to config.path is modified… Awesome! thanks for the clarification!
This commit is contained in:
commit
fa8f159eea
1 changed files with 5 additions and 4 deletions
|
@ -48,13 +48,14 @@ 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);
|
||||||
if (process.platform ==='win32' && !client.path.startsWith('\\\\.\\pipe\\')){
|
if (process.platform ==='win32' && !client.path.startsWith('\\\\.\\pipe\\')){
|
||||||
client.path = client.path.replace(/^\//, '');
|
var path = client.path;
|
||||||
client.path = client.path.replace(/\//g, '-');
|
path = path.replace(/^\//, '');
|
||||||
client.path= '\\\\.\\pipe\\'+client.path;
|
path = path.replace(/\//g, '-');
|
||||||
|
path= '\\\\.\\pipe\\'+path;
|
||||||
}
|
}
|
||||||
client.socket = net.connect(
|
client.socket = net.connect(
|
||||||
{
|
{
|
||||||
path:client.path
|
path: path
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Reference in a new issue