From 2316b6b643377ecd99b24735dc6c96bb42d1a5f3 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Wed, 22 Mar 2023 15:39:10 -0700 Subject: [PATCH] Stop skipping expiration of empty DNS mappings --- src/DNS_Mapping.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/DNS_Mapping.h b/src/DNS_Mapping.h index 32559701f0..fa761c4e51 100644 --- a/src/DNS_Mapping.h +++ b/src/DNS_Mapping.h @@ -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);