mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-11 16:38:19 +01:00
fix(#1419): fixed ignored SSL verification and client certificates configuration when using SOCKS proxy (#1420)
This commit is contained in:
parent
c3f6318d69
commit
a077d65a3e
@ -158,9 +158,11 @@ const runSingleRequest = async function (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (socksEnabled) {
|
if (socksEnabled) {
|
||||||
const socksProxyAgent = new SocksProxyAgent(proxyUri);
|
request.httpsAgent = new SocksProxyAgent(
|
||||||
request.httpsAgent = socksProxyAgent;
|
proxyUri,
|
||||||
request.httpAgent = socksProxyAgent;
|
Object.keys(httpsAgentRequestFields).length > 0 ? { ...httpsAgentRequestFields } : undefined
|
||||||
|
);
|
||||||
|
request.httpAgent = new SocksProxyAgent(proxyUri);
|
||||||
} else {
|
} else {
|
||||||
request.httpsAgent = new PatchedHttpsProxyAgent(
|
request.httpsAgent = new PatchedHttpsProxyAgent(
|
||||||
proxyUri,
|
proxyUri,
|
||||||
|
@ -169,9 +169,11 @@ const configureRequest = async (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (socksEnabled) {
|
if (socksEnabled) {
|
||||||
const socksProxyAgent = new SocksProxyAgent(proxyUri);
|
request.httpsAgent = new SocksProxyAgent(
|
||||||
request.httpsAgent = socksProxyAgent;
|
proxyUri,
|
||||||
request.httpAgent = socksProxyAgent;
|
Object.keys(httpsAgentRequestFields).length > 0 ? { ...httpsAgentRequestFields } : undefined
|
||||||
|
);
|
||||||
|
request.httpAgent = new SocksProxyAgent(proxyUri);
|
||||||
} else {
|
} else {
|
||||||
request.httpsAgent = new PatchedHttpsProxyAgent(
|
request.httpsAgent = new PatchedHttpsProxyAgent(
|
||||||
proxyUri,
|
proxyUri,
|
||||||
|
Loading…
Reference in New Issue
Block a user