azalea-rs / azalea

A collection of Rust crates for making Minecraft bots, clients, and tools.
https://azalea.matdoes.dev
MIT License
370 stars 47 forks source link

Fix infinite recursion in the DNS resolver #82

Closed ghost closed 1 year ago

ghost commented 1 year ago

Previously, when resolving server addresses into IPs, the resolver would cause an infinite recursion if the SRV record pointed to its own domain: _minecraft._tcp.example.com. 300 IN SRV 30 0 25566 example.com..

This PR fixes that.