From 43570861812dd8c65f7b452b59b51247afaceab1 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sun, 31 Jan 2021 09:10:24 -0800 Subject: [PATCH] dns.mitm: fix inverted hostname detection --- .../ams_mitm/source/dns_mitm/dnsmitm_host_redirection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stratosphere/ams_mitm/source/dns_mitm/dnsmitm_host_redirection.cpp b/stratosphere/ams_mitm/source/dns_mitm/dnsmitm_host_redirection.cpp index 998c3aeca..deb7ffb20 100644 --- a/stratosphere/ams_mitm/source/dns_mitm/dnsmitm_host_redirection.cpp +++ b/stratosphere/ams_mitm/source/dns_mitm/dnsmitm_host_redirection.cpp @@ -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; }