mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-28 09:30:58 +01:00
dns.mitm: fix inverted hostname detection
This commit is contained in:
parent
ec655069d0
commit
4357086181
@ -348,7 +348,7 @@ namespace ams::mitm::socket::resolver {
|
||||
std::scoped_lock lk(g_redirection_lock);
|
||||
|
||||
for (const auto &[host, address] : g_redirection_map) {
|
||||
if (wildcardcmp(host.c_str(), hostname) == 0) {
|
||||
if (wildcardcmp(host.c_str(), hostname)) {
|
||||
*out = address;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user