From ecd1601a99ea772cece641253b54e7c3848f94aa Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 23 Nov 2017 18:54:14 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index d7a2fd73b..de915b9e8 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -68,6 +68,10 @@ char *stats_JSON(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson,char *r } if ( strcmp(method,"hello") == 0 ) { + retjson = cJSON_CreateObject(); + jaddstr(retjson,"result","success"); + jaddstr(retjson,"status","got hello"); + return(jprint(retjson,1)); //printf("got hello from %s:%u\n",ipaddr!=0?ipaddr:"",argport); return(clonestr("{\"result\":\"success\",\"status\":\"got hello\"}")); }