mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 14:24:54 +00:00
Core/GeckoCodeConfig: Circumvent DDOS protection
This commit is contained in:
parent
44784cf363
commit
c086f894b1
1 changed files with 4 additions and 0 deletions
|
@ -32,6 +32,10 @@ std::vector<GeckoCode> DownloadCodes(std::string gameid, bool* succeeded)
|
|||
|
||||
std::string endpoint{"http://geckocodes.org/txt.php?txt=" + gameid};
|
||||
Common::HttpRequest http;
|
||||
|
||||
// Circumvent high-tech DDOS protection
|
||||
http.SetCookies("challenge=BitMitigate.com;");
|
||||
|
||||
const Common::HttpRequest::Response response = http.Get(endpoint);
|
||||
*succeeded = response.has_value();
|
||||
if (!response)
|
||||
|
|
Loading…
Add table
Reference in a new issue