dns.mitm: fix inverted hostname detection

This commit is contained in:
Michael Scire authored and SciresM committed 2021-02-02 11:41:49 -08:00
1 parent 4ce2a6deb3
commit 97aa209c43
1 file changed
+1 -1
@@ -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;
}