mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 18:00:16 +00:00
LookupServer: Turn #defines into enum classes and add formatter
This commit is contained in:
parent
6e70888315
commit
7b3bed7910
Notes:
sideshowbarker
2024-07-18 18:22:21 +09:00
Author: https://github.com/gunnarbeutner
Commit: 7b3bed7910
Pull-request: https://github.com/SerenityOS/serenity/pull/6921
Reviewed-by: https://github.com/bugaevc
11 changed files with 120 additions and 49 deletions
|
@ -43,7 +43,7 @@ void DNSServer::handle_client()
|
|||
response.set_id(request.id());
|
||||
|
||||
for (auto& question : request.questions()) {
|
||||
if (question.class_code() != C_IN)
|
||||
if (question.class_code() != DNSRecordClass::IN)
|
||||
continue;
|
||||
response.add_question(question);
|
||||
auto answers = lookup_server.lookup(question.name(), question.record_type());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue