From 463ebcdef54c3c12aa43659901c7dc66df6de175 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 8 Jan 2016 18:43:03 -0300 Subject: [PATCH] test --- iguana/iguana_peers.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 120010a9a..173615231 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -349,8 +349,11 @@ int32_t iguana_send(struct iguana_info *coin,struct iguana_peer *addr,uint8_t *s if ( addr == 0 ) return(-1); usock = addr->usock; - if ( usock < 0 || addr->dead != 0 ) - return(-1); + if ( usock < 0 || addr->dead != 0 || addr->relayflag == 0 ) + { + if ( strcmp((char *)&serialized[4],"SuperNET") != 0 && addr->supernet == 0 ) + return(-1); + } remains = len; if ( strcmp((char *)&serialized[4],"SuperNET") == 0 || addr->supernet != 0 ) printf(" >>>>>>> send.(%s) %d bytes to %s supernet.%d\n",(char *)&serialized[4],len,addr->ipaddr,addr->supernet);// getchar();