Merge pull request #9133 from JosJuice/geckocodes-mirror

Replace geckocodes.org with mirror codes.rc24.xyz
This commit is contained in:
LC 2020-10-05 21:43:56 -04:00 committed by GitHub
commit dcaf2b9625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

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);