possible proxy fix 2

This commit is contained in:
zefie
2025-06-20 06:55:29 -04:00
parent 52c6843ac2
commit 7c946918a1

View File

@@ -1265,6 +1265,10 @@ async function doHTTPProxy(socket, request_headers) {
// configure connection to remote socks proxy
const { ProxyAgent }= require('proxy-agent');
options.agent = new ProxyAgent("socks://" + (minisrv_config.services[request_type].external_proxy_host || "127.0.0.1") + ":" + minisrv_config.services[request_type].external_proxy_port);
options.agents = {
"http": options.agent,
"https": options.agent
}
} else {
// configure connection to remote http proxy
var proxy_agent = http;