mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +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) { | function lookup(hostname, options, callback) { | ||||||
| 	let { ok, lookup } = checkCache.get(hostname); | 	let { ok, lookup } = checkCache.get(hostname); | ||||||
| 	lookup = [...lookup]; | 	lookup = lookup && [...lookup]; | ||||||
| 	if (!ok) { | 	if (!ok) { | ||||||
| 		throw new Error('lookup-failed'); | 		throw new Error('lookup-failed'); | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user