mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
Core/GeckoCodeConfig: Circumvent DDOS protection
This commit is contained in:
@ -32,6 +32,10 @@ std::vector<GeckoCode> DownloadCodes(std::string gameid, bool* succeeded)
|
|||||||
|
|
||||||
std::string endpoint{"http://geckocodes.org/txt.php?txt=" + gameid};
|
std::string endpoint{"http://geckocodes.org/txt.php?txt=" + gameid};
|
||||||
Common::HttpRequest http;
|
Common::HttpRequest http;
|
||||||
|
|
||||||
|
// Circumvent high-tech DDOS protection
|
||||||
|
http.SetCookies("challenge=BitMitigate.com;");
|
||||||
|
|
||||||
const Common::HttpRequest::Response response = http.Get(endpoint);
|
const Common::HttpRequest::Response response = http.Get(endpoint);
|
||||||
*succeeded = response.has_value();
|
*succeeded = response.has_value();
|
||||||
if (!response)
|
if (!response)
|
||||||
|
Reference in New Issue
Block a user