|
|
@ -96,6 +96,7 @@ void iguana_acceptloop(void *args) |
|
|
|
} |
|
|
|
memcpy(&ipbits,&cli_addr.sin_addr.s_addr,sizeof(ipbits)); |
|
|
|
expand_ipbits(ipaddr,ipbits); |
|
|
|
printf("incoming (%s:%u)\n",ipaddr,cli_addr.sin_port); |
|
|
|
for (i=flag=0; i<IGUANA_MAXPEERS; i++) |
|
|
|
{ |
|
|
|
if ( coin->peers.active[i].ipbits == (uint32_t)ipbits && coin->peers.active[i].usock >= 0 ) |
|
|
@ -104,6 +105,7 @@ void iguana_acceptloop(void *args) |
|
|
|
close(coin->peers.active[i].usock); |
|
|
|
coin->peers.active[i].dead = 0; |
|
|
|
coin->peers.active[i].usock = sock; |
|
|
|
coin->peers.active[i].A.port = cli_addr.sin_port; |
|
|
|
coin->peers.active[i].ready = (uint32_t)time(NULL); |
|
|
|
flag = 1; |
|
|
|
instantdex_peerhas_clear(coin,&coin->peers.active[i]); |
|
|
|