mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-17 17:36:44 +00:00
dns.mitm: fix issue in host file parsing
This commit is contained in:
parent
d6477cf024
commit
658389fc60
2 changed files with 3 additions and 2 deletions
|
@ -44,11 +44,11 @@
|
|||
; enable_am_debug_mode = u8!0x0
|
||||
; Controls whether dns.mitm is enabled
|
||||
; 0 = Disabled, 1 = Enabled
|
||||
; atmosphere!enable_dns_mitm = u8!0x1
|
||||
; enable_dns_mitm = u8!0x1
|
||||
; Controls whether dns.mitm uses the default redirections in addition to
|
||||
; whatever is specified in the user's hosts file.
|
||||
; 0 = Disabled (use hosts file contents), 1 = Enabled (use defaults and hosts file contents)
|
||||
; atmosphere!add_defaults_to_dns_hosts = u8!0x0
|
||||
; add_defaults_to_dns_hosts = u8!0x0
|
||||
[hbloader]
|
||||
; Controls the size of the homebrew heap when running as applet.
|
||||
; If set to zero, all available applet memory is used as heap.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue