diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-07 23:58:51 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-10 17:26:17 +0200 |
commit | 7b3bed79104df8cefb341a6dd5f47b10431f76ea (patch) | |
tree | 42397215061961cc3acae30e486af98561e1aff9 /Userland/Services/LookupServer/DNSServer.cpp | |
parent | 6e70888315f592aee793d9b64207b48142accb44 (diff) | |
download | serenity-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.cpp | 2 |
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()); |