dns.mitm: fix issue in host file parsing

This commit is contained in:
Michael Scire 2021-01-30 20:16:45 -08:00 committed by SciresM
parent d6477cf024
commit 658389fc60
2 changed files with 3 additions and 2 deletions

View file

@ -157,6 +157,7 @@ namespace ams::mitm::socket::resolver {
current_hostname[work] = '\x00';
g_redirection_map[static_cast<const char *>(current_hostname)] = current_address;
work = 0;
if (c == '\n') {
state = State::BeginLine;