mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:57:47 +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
|
@ -79,7 +79,7 @@ public:
|
|||
return m_answers.size();
|
||||
}
|
||||
|
||||
void add_question(const String& name, u16 record_type, ShouldRandomizeCase);
|
||||
void add_question(const DNSQuestion&);
|
||||
|
||||
enum class Code : u8 {
|
||||
NOERROR = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue