Skip to content
Snippets Groups Projects
Commit 3d740ea7 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

scripts/kresd-host: ignore other types in answer

parent 14091efe
Branches
Tags
No related merge requests found
......@@ -103,8 +103,8 @@ for i, qtype in ipairs(qtypes) do
print(string.format("%s has IPv6 address %s", qname, rdata))
elseif rr.type == kres.type.MX then
print(string.format("%s mail is handled by %s", qname, rdata))
else
print(string.format("%s has %s record %s%s", qname, qtype, rdata))
elseif rr.type == pkt:qtype() then
print(string.format("%s has %s record %s", qname, qtype, rdata))
end
end
end
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment