diff --git a/Userland/Services/LookupServer/LookupServer.cpp b/Userland/Services/LookupServer/LookupServer.cpp index 338f76034d..238f8387ab 100644 --- a/Userland/Services/LookupServer/LookupServer.cpp +++ b/Userland/Services/LookupServer/LookupServer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2020, Andreas Kling + * Copyright (c) 2018-2021, Andreas Kling * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -263,7 +263,7 @@ Vector LookupServer::lookup(const String& hostname, const String& namese Vector responses; Vector cacheable_answers; for (auto& answer : response.answers()) { - if (answer.type() != T_A) + if (answer.type() != record_type) continue; responses.append(answer.record_data()); if (!answer.has_expired())