summaryrefslogtreecommitdiff
path: root/Userland/Services/LookupServer/DNSResponse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Services/LookupServer/DNSResponse.cpp')
-rw-r--r--Userland/Services/LookupServer/DNSResponse.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Services/LookupServer/DNSResponse.cpp b/Userland/Services/LookupServer/DNSResponse.cpp
index b14fd585ad..77d903f320 100644
--- a/Userland/Services/LookupServer/DNSResponse.cpp
+++ b/Userland/Services/LookupServer/DNSResponse.cpp
@@ -108,8 +108,7 @@ Optional<DNSResponse> DNSResponse::from_raw_response(const u8* raw_data, size_t
size_t dummy_offset = offset;
data = parse_dns_name(raw_data, dummy_offset, raw_size);
} else if (record.type() == T_A) {
- auto ipv4_address = IPv4Address((const u8*)record.data());
- data = ipv4_address.to_string();
+ data = { record.data(), record.data_length() };
} else {
// FIXME: Parse some other record types perhaps?
dbgln("data=(unimplemented record type {})", record.type());