Skip to content

Commit 73c6e14

Browse files
committed
fix: dns cache record
1 parent 846c262 commit 73c6e14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/dnscache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ class DNSCacheResolver {
224224
};
225225
this._dnsCache.set(hostname, cacheEntry);
226226

227-
return records[0];
227+
return cacheEntry;
228228
} catch (err) {
229229
this._debugDNS(err, 'resolve');
230230
throw err;

0 commit comments

Comments
 (0)