diff --git a/iguana/exchanges/LP_network.c b/iguana/exchanges/LP_network.c index f138b4962..ef2c31183 100644 --- a/iguana/exchanges/LP_network.c +++ b/iguana/exchanges/LP_network.c @@ -28,7 +28,6 @@ struct psock uint16_t Numpsocks,Psockport = MIN_PSOCK_PORT,Pcmdport = MAX_PSOCK_PORT; extern portable_mutex_t LP_commandQmutex; -extern char *myipaddr; #ifdef FROM_JS diff --git a/iguana/exchanges/stats.c b/iguana/exchanges/stats.c index c49729b3e..a2b5d4427 100644 --- a/iguana/exchanges/stats.c +++ b/iguana/exchanges/stats.c @@ -549,7 +549,7 @@ char *stats_rpcparse(char *retbuf,int32_t bufsize,int32_t *jsonflagp,int32_t *po //free(buf); //while ( retstr == 0 ) // usleep(10000); - if ( (retstr= stats_JSON(ctx,0,myipaddr,-1,argjson,remoteaddr,port)) != 0 ) + if ( (retstr= stats_JSON(ctx,0,LP_myipaddr,-1,argjson,remoteaddr,port)) != 0 ) { if ( (retitem= cJSON_Parse(retstr)) != 0 ) jaddi(retarray,retitem);