Stop skipping expiration of empty DNS mappings

This commit is contained in:
Tim Wojtulewicz 2023-03-22 15:39:10 -07:00
parent 71f487bd20
commit 2316b6b643

View file

@ -46,13 +46,7 @@ public:
bool Failed() const { return failed; }
bool Valid() const { return ! failed; }
bool Expired() const
{
if ( ! req_host.empty() && addrs.empty() )
return false; // nothing to expire
return util::current_time() > (creation_time + req_ttl);
}
bool Expired() const { return util::current_time() > (creation_time + req_ttl); }
void Merge(const DNS_MappingPtr& other);