mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-27 11:00:37 -05:00
rsGetHostByName doesn't support IPv6 addresses. Before this commit when an hostname had both AAAA and A record rsGetHostByName retrurned success but with 0.0.0.0 invalid address. As rsGetHostByName is not capable of handling IPv6 (fixing it would require API change and a bunch of refactors around) just avoid to receive IPv6 addresses on resolition, so the correct IPv4 address is returned if present, otherwise fail gracefully (A record not found). |
||
|---|---|---|
| .. | ||
| src | ||