@ -132,7 +132,8 @@ extern "C" int GetIPList(void *thread, addr_t *addr, int max, int ipv4, int ipv6
@@ -132,7 +132,8 @@ extern "C" int GetIPList(void *thread, addr_t *addr, int max, int ipv4, int ipv6
@ -216,7 +220,9 @@ extern "C" int GetIPList(void *data, addr_t* addr, int max, int ipv4, int ipv6)
@@ -216,7 +220,9 @@ extern "C" int GetIPList(void *data, addr_t* addr, int max, int ipv4, int ipv6)
boolok=(ipv4&&thread->cache[j].v==4)||
(ipv6&&thread->cache[j].v==6);
if(ok)break;
j=i+((j-i+1)%(size-i));
j++;
if(j==size)
j=i;
}while(1);
addr[i]=thread->cache[j];
thread->cache[j]=thread->cache[i];
@ -347,7 +353,7 @@ int main(int argc, char **argv) {
@@ -347,7 +353,7 @@ int main(int argc, char **argv) {
printf("Starting %i DNS threads for %s on %s (port %i)...",opts.nDnsThreads,opts.host,opts.ns,opts.nPort);