mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:27:35 +00:00
LookupServer: Fix serializing name data in DNS answers
When serializing a RR of type PTR, we should use the DNS name serialization format, not a raw string.
This commit is contained in:
parent
d6f7ced4f1
commit
80f7489df0
3 changed files with 16 additions and 2 deletions
|
@ -38,6 +38,7 @@ public:
|
|||
|
||||
static DNSName parse(const u8* data, size_t& offset, size_t max_offset, size_t recursion_level = 0);
|
||||
|
||||
size_t serialized_size() const;
|
||||
const String& as_string() const { return m_name; }
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue