mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: cache lookup error when doing loopback calls
This commit is contained in:
@@ -48,7 +48,7 @@ async function init() {
|
||||
*/
|
||||
function lookup(hostname, options, callback) {
|
||||
let { ok, lookup } = checkCache.get(hostname);
|
||||
lookup = [...lookup];
|
||||
lookup = lookup && [...lookup];
|
||||
if (!ok) {
|
||||
throw new Error('lookup-failed');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user