changed some stuff
This commit is contained in:
parent
8a588816c4
commit
b896d3f698
2 changed files with 2 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ export const proxyProvider: ProviderConfig = {
|
||||||
const result = await batchProcessor.processItems({
|
const result = await batchProcessor.processItems({
|
||||||
items: proxies,
|
items: proxies,
|
||||||
batchSize: parseInt(process.env.PROXY_BATCH_SIZE || '200'),
|
batchSize: parseInt(process.env.PROXY_BATCH_SIZE || '200'),
|
||||||
totalDelayMs: parseInt(process.env.PROXY_VALIDATION_HOURS || '8') * 60 * 60 * 1000,
|
totalDelayMs: parseInt(process.env.PROXY_VALIDATION_HOURS || '4') * 60 * 60 * 1000 ,
|
||||||
jobNamePrefix: 'proxy',
|
jobNamePrefix: 'proxy',
|
||||||
operation: 'check-proxy',
|
operation: 'check-proxy',
|
||||||
service: 'proxy',
|
service: 'proxy',
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
||||||
|
|
||||||
export interface ProxyInfo {
|
export interface ProxyInfo {
|
||||||
|
source?: string;
|
||||||
protocol: 'http' | 'https' | 'socks4' | 'socks5';
|
protocol: 'http' | 'https' | 'socks4' | 'socks5';
|
||||||
host: string;
|
host: string;
|
||||||
port: number;
|
port: number;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue