mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-10 03:18:55 +02:00
[hle/service/sockets] fix hogwarts legacy crash due to non-blacklisted domain (#3762)
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:
parent
811cc18d74
commit
772e38cb8d
1 changed files with 10 additions and 7 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue