getaddrinfo does not set hints
getaddrinfo in src/common/compat.c gives NULL as hints parameter, so tor servers usually end up doing useless AAAA queries. also, I believe it's better if it gave random IP address, instead of the first one returned from DNS proxy. there are many DNS proxies which do not randomize the returned resource record set.
in addition to this patch, makefiles need fixing to get crypto_pseudo_rand_int linked into tor-resolve. I get undefined reference to smartlist_get, but it's supposed to be in libor.a. somebody else might want to sort this out.
[Automatically added by flyspray2trac: Operating System: All]
Trac:
Username: Safari