mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-15 09:36:35 +00:00
dns.mitm: hint = {} fix in options
This commit is contained in:
parent
a4d7c90da7
commit
b93fd40550
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ namespace ams::mitm::socket::resolver {
|
||||||
LogDebug("[%016lx]: Redirecting %s:%u to %u.%u.%u.%u\n", this->client_info.program_id.value, hostname, port, (redirect_addr >> 0) & 0xFF, (redirect_addr >> 8) & 0xFF, (redirect_addr >> 16) & 0xFF, (redirect_addr >> 24) & 0xFF);
|
LogDebug("[%016lx]: Redirecting %s:%u to %u.%u.%u.%u\n", this->client_info.program_id.value, hostname, port, (redirect_addr >> 0) & 0xFF, (redirect_addr >> 8) & 0xFF, (redirect_addr >> 16) & 0xFF, (redirect_addr >> 24) & 0xFF);
|
||||||
|
|
||||||
const bool use_hint = serialized_hint.GetPointer() != nullptr;
|
const bool use_hint = serialized_hint.GetPointer() != nullptr;
|
||||||
struct addrinfo hint;
|
struct addrinfo hint = {};
|
||||||
if (use_hint) {
|
if (use_hint) {
|
||||||
AMS_ABORT_UNLESS(serializer::DNSSerializer::FromBuffer(hint, serialized_hint.GetPointer(), serialized_hint.GetSize()) >= 0);
|
AMS_ABORT_UNLESS(serializer::DNSSerializer::FromBuffer(hint, serialized_hint.GetPointer(), serialized_hint.GetSize()) >= 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue