albertasi

Results 2 issues of albertasi

Hello, The [getbyname/2 function changes the resolver’s address list by calling lists:usort/1](https://github.com/benoitc/hackney/blob/master/src/hackney_happy.erl#L130). This removes duplicates and reorders the addresses, which breaks dns randomness. In Kubernetes, Service A record returns all...

This PR stops sorting the resolver’s address list in hackney_happy:getbyname/2 by replacing lists:usort(AddrList) with AddrList. The current sorting removes duplicates and reorders IPs, which unintentionally breaks DNS randomness and can...