From 2be631b2a3252e98622d2a5c628f437b3c557d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phan=20=C4=90=C4=83ng=20Khoa?= Date: Wed, 13 Nov 2024 01:00:54 +0700 Subject: [PATCH] fix(proxy): fix an issue where an array is passed to interceptor --- src/models/proxy.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/models/proxy.ts b/src/models/proxy.ts index 9a95953f3..6972ffc0d 100644 --- a/src/models/proxy.ts +++ b/src/models/proxy.ts @@ -29,6 +29,8 @@ export class Proxy { if (!this.validUrl.test(url)) throw new Error(`Proxy URL at index ${i} is invalid!`); this.rotateProxy({ ...proxyConfig, urls: proxyConfig.url }); + + return; } this.client.interceptors.request.use(config => {