1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

If forcing IPv4, retry immediately rather than wait 2 minutes

This commit is contained in:
Michał Janiszewski
2018-02-12 20:31:26 +01:00
committed by Michał Janiszewski
parent 2e19e6cf0e
commit 991a8472bf

View File

@@ -186,10 +186,12 @@ private:
}
Console::Error::WriteLine("Unable to advertise (%d): %s", status, message);
// Hack for https://github.com/OpenRCT2/OpenRCT2/issues/6277
// Master server may not reply correctly if using IPv6, retry forcing IPv4
// Master server may not reply correctly if using IPv6, retry forcing IPv4,
// don't wait the full timeout.
if (!_forceIPv4 && status == 500)
{
_forceIPv4 = true;
_lastAdvertiseTime = 0;
log_info("Retry with ipv4 only");
}
}