[hle/service/sockets] fix hogwarts legacy crash due to non-blacklisted domain (#3762)
Some checks are pending
tx-src / sources (push) Waiting to run
Check Strings / check-strings (push) Waiting to run

Signed-off-by: lizzie <lizzie@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3762
Reviewed-by: Maufeat <sahyno1996@gmail.com>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Co-authored-by: lizzie <lizzie@eden-emu.dev>
Co-committed-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie 2026-03-22 20:17:44 +01:00 committed by crueter
parent 811cc18d74
commit 772e38cb8d
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6

View file

@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
@ -53,12 +53,15 @@ enum class NetDbError : s32 {
NoData = 4, NoData = 4,
}; };
static const constexpr std::array blockedDomains = {"srv.nintendo.net", static const constexpr std::array blockedDomains = {
"battle.net", "srv.nintendo.net", //obvious
"microsoft.com", "phoenix-api.wbagora.com", //hogwarts legacy
"mojang.com", "battle.net",
"xboxlive.com", "microsoft.com", //minecraft dungeons + other games
"minecraftservices.com"}; "mojang.com",
"xboxlive.com",
"minecraftservices.com"
};
static bool IsBlockedHost(const std::string& host) { static bool IsBlockedHost(const std::string& host) {
return std::any_of( return std::any_of(