From 63afa00559777cc384cc3c78d8f4587e1a831b80 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 22 Jun 2017 19:42:26 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_rpc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index c4e4a00af..71362afed 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -20,9 +20,12 @@ char *LP_issue_curl(char *debugstr,char *destip,uint16_t port,char *url) { - char *retstr = 0; struct LP_peerinfo *peer = 0; + char *retstr = 0; int32_t maxerrs; struct LP_peerinfo *peer = 0; peer = LP_peerfind((uint32_t)calc_ipbits(destip),port); - if ( peer == 0 || peer->errors < LP_MAXPEER_ERRORS ) + if ( strncmp("5.9.253",destip,strlen("5.9.253")) == 0 ) + maxerrs = LP_MAXPEER_ERRORS; + else maxerrs = 1; + if ( peer == 0 || peer->errors < maxerrs ) { if ( (retstr= issue_curlt(url,LP_HTTP_TIMEOUT)) == 0 ) {