Replace geckocodes.org with mirror codes.rc24.xyz

This commit is contained in:
JosJuice 2020-10-05 22:18:04 +02:00
parent c2975c8cb5
commit 63f5fa6e19

View file

@ -18,12 +18,10 @@ namespace Gecko
{
std::vector<GeckoCode> DownloadCodes(std::string gametdb_id, bool* succeeded)
{
std::string endpoint{"https://www.geckocodes.org/txt.php?txt=" + gametdb_id};
// codes.rc24.xyz is a mirror of the now defunct geckocodes.org.
std::string endpoint{"https://codes.rc24.xyz/txt.php?txt=" + gametdb_id};
Common::HttpRequest http;
// Circumvent high-tech DDOS protection
http.SetCookies("challenge=BitMitigate.com;");
// The server always redirects once to the same location.
http.FollowRedirects(1);