mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Stop skipping expiration of empty DNS mappings
This commit is contained in:
parent
71f487bd20
commit
2316b6b643
1 changed files with 1 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue