|
|
@ -23,7 +23,7 @@ char *LP_issue_curl(char *debugstr,char *destip,uint16_t port,char *url) |
|
|
|
char *retstr = 0; int32_t maxerrs; struct LP_peerinfo *peer = 0; |
|
|
|
peer = LP_peerfind((uint32_t)calc_ipbits(destip),port); |
|
|
|
maxerrs = LP_MAXPEER_ERRORS; |
|
|
|
if ( peer == 0 || (peer->errors < maxerrs && peer->good < LP_MINPEER_GOOD) ) |
|
|
|
if ( peer == 0 || (peer->errors < maxerrs || peer->good >= LP_MINPEER_GOOD) ) |
|
|
|
{ |
|
|
|
if ( (retstr= issue_curlt(url,LP_HTTP_TIMEOUT)) == 0 ) |
|
|
|
{ |
|
|
|