mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-22 20:06:40 +00:00
dns.mitm: fix inverted hostname detection
This commit is contained in:
parent
4ce2a6deb3
commit
97aa209c43
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ namespace ams::mitm::socket::resolver {
|
||||||
std::scoped_lock lk(g_redirection_lock);
|
std::scoped_lock lk(g_redirection_lock);
|
||||||
|
|
||||||
for (const auto &[host, address] : g_redirection_map) {
|
for (const auto &[host, address] : g_redirection_map) {
|
||||||
if (wildcardcmp(host.c_str(), hostname) == 0) {
|
if (wildcardcmp(host.c_str(), hostname)) {
|
||||||
*out = address;
|
*out = address;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue