summaryrefslogtreecommitdiff
path: root/Userland/Services/LookupServer/DNSServer.cpp
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-07 23:58:51 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-10 17:26:17 +0200
commit7b3bed79104df8cefb341a6dd5f47b10431f76ea (patch)
tree42397215061961cc3acae30e486af98561e1aff9 /Userland/Services/LookupServer/DNSServer.cpp
parent6e70888315f592aee793d9b64207b48142accb44 (diff)
downloadserenity-7b3bed79104df8cefb341a6dd5f47b10431f76ea.zip
LookupServer: Turn #defines into enum classes and add formatter
Diffstat (limited to 'Userland/Services/LookupServer/DNSServer.cpp')
-rw-r--r--Userland/Services/LookupServer/DNSServer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/LookupServer/DNSServer.cpp b/Userland/Services/LookupServer/DNSServer.cpp
index 3bce7a275b..08f199da69 100644
--- a/Userland/Services/LookupServer/DNSServer.cpp
+++ b/Userland/Services/LookupServer/DNSServer.cpp
@@ -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());