From 6f74cd3ce86bd41149bfdd7987892b28967da06f Mon Sep 17 00:00:00 2001 From: Lanin Aleksandr <39188312+ASLanin@users.noreply.github.com> Date: Wed, 4 Mar 2026 17:08:31 +0300 Subject: [PATCH] feat(proxy): allow socks proxy for the notifications (#7088) --- server/notification-providers/notification-provider.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/notification-providers/notification-provider.js b/server/notification-providers/notification-provider.js index 554c31fda..42079176c 100644 --- a/server/notification-providers/notification-provider.js +++ b/server/notification-providers/notification-provider.js @@ -2,6 +2,7 @@ const { Liquid } = require("liquidjs"); const { DOWN } = require("../../src/util"); const { HttpProxyAgent } = require("http-proxy-agent"); const { HttpsProxyAgent } = require("https-proxy-agent"); +const { SocksProxyAgent } = require("socks-proxy-agent"); class NotificationProvider { /** @@ -183,6 +184,10 @@ class NotificationProvider { const agent = new HttpsProxyAgent(proxyEnv); axiosConfig.httpAgent = agent; axiosConfig.httpsAgent = agent; + } else if (["socks:", "socks4:", "socks5:", "socks5h:"].includes(proxyUrl.protocol)) { + const agent = new SocksProxyAgent(proxyEnv); + axiosConfig.httpAgent = agent; + axiosConfig.httpsAgent = agent; } axiosConfig.proxy = false;