Skip to content

Commit

Permalink
Update DnsServer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
youfanx committed Aug 26, 2024
1 parent 105a572 commit 28061b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rxlib/src/main/java/org/rx/net/dns/DnsServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ public void setInterceptors(RandomList<ResolveInterceptor> interceptors) {

DiskCache<Object, Object> cache = (DiskCache<Object, Object>) Cache.getInstance(DiskCache.class);
if (ENABLE_AUTO_RENEW) {
cache.onExpired.combine((s, e) -> {
Map.Entry<Object, Object> 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);
Expand Down

0 comments on commit 28061b1

Please sign in to comment.