mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18: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 Failed() const { return failed; }
|
||||||
bool Valid() const { return ! failed; }
|
bool Valid() const { return ! failed; }
|
||||||
|
|
||||||
bool Expired() const
|
bool Expired() const { return util::current_time() > (creation_time + req_ttl); }
|
||||||
{
|
|
||||||
if ( ! req_host.empty() && addrs.empty() )
|
|
||||||
return false; // nothing to expire
|
|
||||||
|
|
||||||
return util::current_time() > (creation_time + req_ttl);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Merge(const DNS_MappingPtr& other);
|
void Merge(const DNS_MappingPtr& other);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue