Skip to content

Commit 36c0228

Browse files
committed
refactor: move comment
1 parent eabdd7d commit 36c0228

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/configproxy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,12 +392,12 @@ export class ConfigurableProxy extends EventEmitter {
392392
var proxyOptions = { target };
393393

394394
if (target.protocol.startsWith("unix")) {
395+
// No need for agents for unix sockets
396+
// No support for https for unix sockets
395397
proxyOptions.secure = false;
396398
proxyOptions.target.socketPath = decodeURIComponent(target.host);
397399
proxyOptions.target.pathname = (target.pathname ? target.pathname + "/" : "") + reqUrl;
398400
} else {
399-
// No need for agents for unix sockets
400-
// No support for https for unix sockets
401401
proxyOptions.secure = target.protocol.slice(-2) === "s:";
402402

403403
if (proxyOptions.secure) {

0 commit comments

Comments
 (0)