mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-02 00:32:19 +00:00
dns.mitm: fix hosts file parsing bug
This commit is contained in:
parent
bcda834980
commit
8eb65ab401
1 changed files with 2 additions and 0 deletions
|
@ -125,6 +125,8 @@ namespace ams::mitm::socket::resolver {
|
||||||
current_address = 0;
|
current_address = 0;
|
||||||
work = static_cast<u32>(c - '0');
|
work = static_cast<u32>(c - '0');
|
||||||
state = State::Ip1;
|
state = State::Ip1;
|
||||||
|
} else if (c == '\n') {
|
||||||
|
state = State::BeginLine;
|
||||||
} else {
|
} else {
|
||||||
state = State::IgnoredLine;
|
state = State::IgnoredLine;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue