add insecure parse to docker cmd

This commit is contained in:
TheBeastLT
2022-06-24 09:09:42 +03:00
parent 9117d574b4
commit eb86b83170
2 changed files with 3 additions and 3 deletions

View File

@@ -9,4 +9,4 @@ COPY package*.json ./
RUN npm ci --only-production RUN npm ci --only-production
COPY . . COPY . .
CMD [ "node", "index.js" ] CMD [ "node", "--insecure-http-parser", "index.js" ]

View File

@@ -35,8 +35,8 @@ async function _getInstantAvailable(hashes, apiKey, retries = 3, maxChunkSize =
if (!missingHashes.length) { if (!missingHashes.length) {
return cachedResults return cachedResults
} }
const options = await getDefaultOptions();
const RD = new RealDebridClient(apiKey, getDefaultOptions()); const RD = new RealDebridClient(apiKey, options);
const hashBatches = chunkArray(missingHashes, maxChunkSize) const hashBatches = chunkArray(missingHashes, maxChunkSize)
return Promise.all(hashBatches.map(batch => RD.torrents.instantAvailability(batch) return Promise.all(hashBatches.map(batch => RD.torrents.instantAvailability(batch)
.then(response => { .then(response => {