|
|
@ -143,7 +143,7 @@ struct LP_peerinfo *LP_addpeer(struct LP_peerinfo *mypeer,int32_t mypubsock,char |
|
|
|
} else printf("%s pushport.%u subport.%u pushsock.%d\n",ipaddr,pushport,subport,pushsock); |
|
|
|
if ( peer->pushsock >= 0 && peer->subsock >= 0 ) |
|
|
|
{ |
|
|
|
//printf("add peer %s\n",peer->ipaddr);
|
|
|
|
printf("add peer %s isLP.%d\n",peer->ipaddr,peer->isLP); |
|
|
|
portable_mutex_lock(&LP_peermutex); |
|
|
|
HASH_ADD(hh,LP_peerinfos,ip_port,sizeof(peer->ip_port),peer); |
|
|
|
if ( mypeer != 0 ) |
|
|
|