jl777 7 years ago
parent
commit
1e3f6e7896
  1. 5
      iguana/exchanges/LP_commands.c

5
iguana/exchanges/LP_commands.c

@ -239,6 +239,7 @@ jpg(srcfile, destfile, power2=7, password, data="", required, ind=0)\n\
{ {
jaddstr(retjson,"error","IPC endpoint already exists"); jaddstr(retjson,"error","IPC endpoint already exists");
jaddstr(retjson,"endpoint","ws://127.0.0.1:5555"); jaddstr(retjson,"endpoint","ws://127.0.0.1:5555");
jaddnum(retjson,"socket",IPC_ENDPOINT);
} }
else else
{ {
@ -248,13 +249,15 @@ jpg(srcfile, destfile, power2=7, password, data="", required, ind=0)\n\
{ {
jaddstr(retjson,"result","success"); jaddstr(retjson,"result","success");
jaddstr(retjson,"endpoint","ws://127.0.0.1:5555"); jaddstr(retjson,"endpoint","ws://127.0.0.1:5555");
jaddnum(retjson,"socket",IPC_ENDPOINT);
} }
else else
{ {
jaddstr(retjson,"error",(char *)nn_strerror(nn_errno())); jaddstr(retjson,"error",(char *)nn_strerror(nn_errno()));
jaddnum(retjson,"err",err); jaddnum(retjson,"err",err);
jaddnum(retjson,"socket",IPC_ENDPOINT);
} }
} else jaddstr(retjson,"error","couldnt get NN_PUB socket"); } else jaddstr(retjson,"error","couldnt get NN_PAIR socket");
} }
return(jprint(retjson,1)); return(jprint(retjson,1));
} }

Loading…
Cancel
Save