mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibDNS: Respect records' TTL in the resolver cache
This commit is contained in:
parent
879ae94183
commit
6911c45bab
Notes:
github-actions[bot]
2024-11-20 20:44:10 +00:00
Author: https://github.com/alimpfard
Commit: 6911c45bab
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2111
Reviewed-by: https://github.com/ADKaster ✅
2 changed files with 60 additions and 8 deletions
|
@ -104,7 +104,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
->when_resolved([&](auto& result) {
|
||||
outln("Resolved {}:", request.name);
|
||||
HashTable<DNS::Messages::ResourceType> types;
|
||||
auto& recs = result->records();
|
||||
auto recs = result->records();
|
||||
for (auto& record : recs)
|
||||
types.set(record.type);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue