mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
include ip in resolved url cache key
This commit is contained in:
@@ -88,7 +88,7 @@ async function resolve(parameters) {
|
|||||||
if (!parameters.apiKey || !parameters.infoHash || !parameters.cachedEntryInfo) {
|
if (!parameters.apiKey || !parameters.infoHash || !parameters.cachedEntryInfo) {
|
||||||
return Promise.reject("No valid parameters passed");
|
return Promise.reject("No valid parameters passed");
|
||||||
}
|
}
|
||||||
const id = `${parameters.mochKey}_${parameters.apiKey}_${parameters.infoHash}_${parameters.fileIndex}`;
|
const id = `${parameters.ip}_${parameters.mochKey}_${parameters.apiKey}_${parameters.infoHash}_${parameters.fileIndex}`;
|
||||||
const method = () => timeout(RESOLVE_TIMEOUT, cacheWrapResolvedUrl(id, () => moch.instance.resolve(parameters)))
|
const method = () => timeout(RESOLVE_TIMEOUT, cacheWrapResolvedUrl(id, () => moch.instance.resolve(parameters)))
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.warn(error);
|
console.warn(error);
|
||||||
|
|||||||
Reference in New Issue
Block a user