Added feeds db table. Using undici agent for proxy.

This commit is contained in:
DebaucheryLibrarian
2026-04-04 00:19:08 +02:00
parent dc5e510151
commit 56169f00d6
2 changed files with 102 additions and 6 deletions

View File

@@ -8,7 +8,6 @@ const fs = require('fs').promises;
// const util = require('util');
// const stream = require('stream');
const { pipeline } = require('stream/promises');
const tunnel = require('tunnel');
const Bottleneck = require('bottleneck');
const { JSDOM, toughCookie } = require('jsdom');
const puppeteer = require('puppeteer-extra');
@@ -328,11 +327,8 @@ const defaultAgent = new undici.Agent({
},
});
const proxyAgent = tunnel.httpsOverHttp({
proxy: {
host: config.proxy.host,
port: config.proxy.port,
},
const proxyAgent = new undici.ProxyAgent({
uri: `http://${config.proxy.host}:${config.proxy.port}`,
});
async function request(method = 'get', url, body, requestOptions = {}, limiter, redirects = 0) {