mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 04:27:45 +00:00
LookupServer: Move case randomization into DNSName
* DNSName knows how to randomize itself * DNSPacket no longer constructs DNSQuestion instances, it receives an already built DNSQuestion and just adds it to the list * LookupServer::lookup() explicitly calls randomize_case() if it needs to randomize the case.
This commit is contained in:
parent
89f718c4c5
commit
bacbde31f3
5 changed files with 27 additions and 23 deletions
|
@ -41,6 +41,8 @@ public:
|
|||
size_t serialized_size() const;
|
||||
const String& as_string() const { return m_name; }
|
||||
|
||||
void randomize_case();
|
||||
|
||||
private:
|
||||
String m_name;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue