From 1e3f6e78960dbba084862501b2694ad29af59db4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 2 Mar 2018 13:35:17 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index b271b7f19..e642a134b 100644 --- a/iguana/exchanges/LP_commands.c +++ b/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,"endpoint","ws://127.0.0.1:5555"); + jaddnum(retjson,"socket",IPC_ENDPOINT); } else { @@ -248,13 +249,15 @@ jpg(srcfile, destfile, power2=7, password, data="", required, ind=0)\n\ { jaddstr(retjson,"result","success"); jaddstr(retjson,"endpoint","ws://127.0.0.1:5555"); + jaddnum(retjson,"socket",IPC_ENDPOINT); } else { jaddstr(retjson,"error",(char *)nn_strerror(nn_errno())); 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)); }