Compare commits

..

2 Commits

Author SHA1 Message Date
Bananymous f2e41f71d6 Kernel: Fix unix domain socket close detection 2025-04-22 08:26:04 +03:00
Bananymous 3a11a5a9a0 resolver: Add support for CNAME
Also rework resolver's send format and convert test-tcp and nslookup to
use getaddrinfo
2025-04-22 08:26:04 +03:00
1 changed files with 1 additions and 0 deletions

View File

@ -316,6 +316,7 @@ BAN::Optional<BAN::IPv4Address> resolve_from_dns_cache(BAN::HashMap<BAN::String,
{ {
if (time(nullptr) > it->value.valid_until) if (time(nullptr) > it->value.valid_until)
{ {
dprintln("{} timedout", it->key);
dns_cache.remove(it); dns_cache.remove(it);
return {}; return {};
} }