1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-08 14:53:12 +02:00
Files
unrealircd/src
Bram Matthys a6ae945499 Fix built-in https fetcher to also try IPv6.
Without this fix, on an IPv6-only host UnrealIRCd would give you:
[warn] /home/ircd/unrealircd/conf/modules.default.conf:309: Failed to download 'https://www.unrealircd.org/files/geo/classic/GeoIP.dat': Could not connect: Network is unreachable
[warn] Continuing anyway...

This fixes https://bugs.unrealircd.org/view.php?id=6249, which was
also similarly reported by progval in https://bugs.unrealircd.org/view.php?id=6073

This implements only a simple try-IPv4-then-IPv6 approach in case of
clear connect errors. There is no happy eyeball like approach (where it
gives IPv6 a 250ms head start and then tries IPv4 in parallel), if there
is really a 15sec timeout then it doesn't retry IPv6 either (in case you
have IPv4, there is a route, but packets end up blackholed), nor does it
try all IP addresses that the resolver returns (then again, that's not
strictly related to happy eyeballs or IPv4/IPv6).
That would require some major overhaul that is not planned in U6. If you
want better/great protocol support you can always enable cURL in ./Config.
2025-09-17 10:59:04 +02:00
..
2022-12-14 15:24:19 +00:00
2025-09-14 14:57:43 +02:00
2021-09-11 09:56:22 +02:00
2025-07-31 17:53:40 +02:00
2022-12-14 15:24:19 +00:00
2024-09-23 17:25:17 +02:00
2023-05-28 18:13:34 +02:00
2025-09-14 14:57:43 +02:00