better check for secure before kick

This commit is contained in:
zefie
2025-06-20 09:21:23 -04:00
parent 7c946918a1
commit 0176eea74f
2 changed files with 3 additions and 2 deletions

View File

@@ -1263,6 +1263,7 @@ async function doHTTPProxy(socket, request_headers) {
// configure connection to an external proxy
if (minisrv_config.services[request_type].external_proxy_is_socks) {
// configure connection to remote socks proxy
// this doesnt work, needs to be fixed
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 = {