Browse Source

Test

etomic
jl777 7 years ago
parent
commit
68173f049d
  1. 3
      iguana/exchanges/stats.c

3
iguana/exchanges/stats.c

@ -730,6 +730,7 @@ void LP_rpc_processreq(void *_ptr)
free(jsonbuf);
}
extern int32_t IAMLP;
void stats_rpcloop(void *args)
{
static uint32_t counter;
@ -779,7 +780,7 @@ void stats_rpcloop(void *args)
printf("error launching rpc handler on port %d\n",port);
// yes, small leak per command
}
if ( ipbits != localhostbits )
if ( IAMLP != 0 && ipbits != localhostbits )
{
close(bindsock);
bindsock = iguana_socket(1,"0.0.0.0",port);

Loading…
Cancel
Save