From 28061b1b3655ef3a902eb595b8f489c3ee11f888 Mon Sep 17 00:00:00 2001 From: wxm <115806199+youfanx@users.noreply.github.com> Date: Mon, 26 Aug 2024 21:52:25 +0800 Subject: [PATCH] Update DnsServer.java --- rxlib/src/main/java/org/rx/net/dns/DnsServer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rxlib/src/main/java/org/rx/net/dns/DnsServer.java b/rxlib/src/main/java/org/rx/net/dns/DnsServer.java index 565564db..fd5d0633 100644 --- a/rxlib/src/main/java/org/rx/net/dns/DnsServer.java +++ b/rxlib/src/main/java/org/rx/net/dns/DnsServer.java @@ -56,8 +56,7 @@ public void setInterceptors(RandomList interceptors) { DiskCache cache = (DiskCache) Cache.getInstance(DiskCache.class); if (ENABLE_AUTO_RENEW) { - cache.onExpired.combine((s, e) -> { - Map.Entry entry = e.getValue(); + cache.onExpired.combine((s, entry) -> { String key; if ((key = as(entry.getKey(), String.class)) == null || !key.startsWith(DOMAIN_PREFIX)) { entry.setValue(null);