mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-08-04 01:36:10 -04:00
Fix the damn flags
This commit is contained in:
parent
dd6c90dcac
commit
77c705308e
@ -86,7 +86,7 @@ int main(int argc, char* argv[]) {
|
||||
auto questions = tlib::switch_endian_16(dns_header->questions);
|
||||
auto answers = tlib::switch_endian_16(dns_header->answers);
|
||||
|
||||
auto flags = dns_header->flags;
|
||||
auto flags = tlib::switch_endian_16(dns_header->flags);
|
||||
auto qr = flags >> 15;
|
||||
|
||||
// Only handle Response
|
||||
|
@ -124,7 +124,7 @@ std::expected<std::string> tlib::dns::resolve(const std::string& domain, size_t
|
||||
auto questions = tlib::switch_endian_16(dns_header->questions);
|
||||
auto answers = tlib::switch_endian_16(dns_header->answers);
|
||||
|
||||
auto flags = dns_header->flags;
|
||||
auto flags = tlib::switch_endian_16(dns_header->flags);
|
||||
auto qr = flags >> 15;
|
||||
|
||||
// Only handle Response
|
||||
|
Loading…
x
Reference in New Issue
Block a user