mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +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
|
; enable_am_debug_mode = u8!0x0
|
||||||
; Controls whether dns.mitm is enabled
|
; Controls whether dns.mitm is enabled
|
||||||
; 0 = Disabled, 1 = 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
|
; Controls whether dns.mitm uses the default redirections in addition to
|
||||||
; whatever is specified in the user's hosts file.
|
; whatever is specified in the user's hosts file.
|
||||||
; 0 = Disabled (use hosts file contents), 1 = Enabled (use defaults and hosts file contents)
|
; 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]
|
[hbloader]
|
||||||
; Controls the size of the homebrew heap when running as applet.
|
; Controls the size of the homebrew heap when running as applet.
|
||||||
; If set to zero, all available applet memory is used as heap.
|
; 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';
|
current_hostname[work] = '\x00';
|
||||||
|
|
||||||
g_redirection_map[static_cast<const char *>(current_hostname)] = current_address;
|
g_redirection_map[static_cast<const char *>(current_hostname)] = current_address;
|
||||||
|
work = 0;
|
||||||
|
|
||||||
if (c == '\n') {
|
if (c == '\n') {
|
||||||
state = State::BeginLine;
|
state = State::BeginLine;
|
||||||
|
|
Loading…
Reference in a new issue