don't cache server name lookups indefinitely (#436)
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -122,6 +122,7 @@ impl Resolve for Hooked {
|
||||
.read()
|
||||
.expect("locked for reading")
|
||||
.get(name.as_str())
|
||||
.filter(|cached| cached.valid())
|
||||
.cloned();
|
||||
|
||||
if let Some(cached) = cached {
|
||||
|
||||
Reference in New Issue
Block a user