We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eabdd7d commit 36c0228Copy full SHA for 36c0228
lib/configproxy.js
@@ -392,12 +392,12 @@ export class ConfigurableProxy extends EventEmitter {
392
var proxyOptions = { target };
393
394
if (target.protocol.startsWith("unix")) {
395
+ // No need for agents for unix sockets
396
+ // No support for https for unix sockets
397
proxyOptions.secure = false;
398
proxyOptions.target.socketPath = decodeURIComponent(target.host);
399
proxyOptions.target.pathname = (target.pathname ? target.pathname + "/" : "") + reqUrl;
400
} else {
- // No need for agents for unix sockets
- // No support for https for unix sockets
401
proxyOptions.secure = target.protocol.slice(-2) === "s:";
402
403
if (proxyOptions.secure) {
0 commit comments