Browse Source

Test

etomic
jl777 7 years ago
parent
commit
dbf2b9e9a6
  1. 2
      iguana/exchanges/LP_rpc.c

2
iguana/exchanges/LP_rpc.c

@ -22,6 +22,8 @@ char *LP_issue_curl(char *debugstr,char *destip,uint16_t port,char *url)
{ {
char *retstr = 0; int32_t maxerrs; 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); peer = LP_peerfind((uint32_t)calc_ipbits(destip),port);
if ( strcmp(destip,"127.0.0.1") != 0 )
port--;
maxerrs = LP_MAXPEER_ERRORS; 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) )
{ {

Loading…
Cancel
Save