From 46943aa70eaaa3dd06b3e3b777a140b685f605fd Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 8 Jan 2016 11:25:45 -0300 Subject: [PATCH] test --- iguana/iguana_accept.c | 2 +- iguana/iguana_peers.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/iguana_accept.c b/iguana/iguana_accept.c index d65efa705..0a0111f5c 100755 --- a/iguana/iguana_accept.c +++ b/iguana/iguana_accept.c @@ -64,7 +64,7 @@ void iguana_acceptloop(void *args) { int32_t bindsock,sock; struct iguana_accept *ptr; struct iguana_peer *addr; struct iguana_info *coin = args; socklen_t clilen; struct sockaddr_in cli_addr; char ipaddr[64]; uint32_t ipbits; - bindsock = iguana_socket(1,"127.0.0.1",coin->chain->portp2p); + bindsock = iguana_socket(1,"0.0.0.0",coin->chain->portp2p); printf("iguana_bindloop 127.0.0.1:%d bind sock.%d\n",coin->chain->portp2p,bindsock); while ( bindsock >= 0 ) { diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 8a27db3b0..63953302b 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -248,6 +248,8 @@ void iguana_iAkill(struct iguana_info *coin,struct iguana_peer *addr,int32_t mar //memset(addr,0,sizeof(*addr)); addr->usock = -1; addr->pending = 0; + memset(addr->ipaddr,0,sizeof(addr->ipaddr)); + addr->ipbits = 0; if ( rank > 0 ) iguana_possible_peer(coin,ipaddr); }