bun fetch dont support sock proxy :(
This commit is contained in:
parent
5904af213f
commit
08bb21cee7
5 changed files with 89 additions and 77 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { createLogger } from '@stock-bot/logger';
|
||||
import createCache, { type CacheProvider } from '@stock-bot/cache';
|
||||
import { HttpClient, ProxyConfig } from '@stock-bot/http-client';
|
||||
import { HttpClient, ProxyConfig , RequestConfig } from '@stock-bot/http-client';
|
||||
import type { Logger as PinoLogger } from 'pino';
|
||||
|
||||
export interface ProxySource {
|
||||
|
|
@ -267,6 +267,7 @@ export class ProxyService {
|
|||
const startTime = Date.now();
|
||||
|
||||
try {
|
||||
|
||||
// Create a new HttpClient instance with the proxy
|
||||
const proxyClient = new HttpClient({
|
||||
timeout: this.CHECK_TIMEOUT,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue