diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 1c7f7096b..198a1693e 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -207,7 +207,7 @@ uint32_t iguana_updatemetrics(struct iguana_info *coin) if ( (fp= fopen(tmpfname,"w")) != 0 ) { for (i=0; ipeers.numranked; i++) - if ( (addr= coin->peers.ranked[i]) != 0 ) + if ( (addr= coin->peers.ranked[i]) != 0 && strcmp(addr->ipaddr,"127.0.0.1") != 0 ) fprintf(fp,"%s\n",addr->ipaddr); if ( ftell(fp) > OS_filesize(fname) ) { diff --git a/iguana/iguana_init.c b/iguana/iguana_init.c index b3c0209ca..856067a1d 100755 --- a/iguana/iguana_init.c +++ b/iguana/iguana_init.c @@ -238,7 +238,7 @@ void iguana_parseline(struct iguana_info *coin,int32_t iter,FILE *fp) { if ( m < (2*coin->MAXPEERS)/3 )//&& m < 77.7 ) { - if ( m == 0 ) + if ( 0 && m == 0 ) { addr = &coin->peers.active[m++]; iguana_initpeer(coin,addr,(uint32_t)calc_ipbits("127.0.0.1"));