Hi , would it be possible to prevent the seeds from returning IPV6, My compu/ ISP fails all ipv6 addresses.
clist *bu_dns_lookup(clist *l, const char *seedname, unsigned int def_port)
{
struct addrinfo hints, *res;
memset(&hints, 0, sizeof(hints));
/*hints.ai_family = AF_UNSPEC;*/
hints.ai_family = AF_INET;
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_CANONNAME;
if (getaddrinfo(seedname, NULL, &hints, &res))
return l;
struct addrinfo *rp;
printf("canon-name:%s\n", res->ai_canonname);
for (rp = res; rp != NULL; rp = rp->ai_next){
l = add_seed_addr(l, rp, def_port);
}
freeaddrinfo(res);
return l;
}