mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[fix] Respect maxSockets from target options in RoutingProxy
This commit is contained in:
parent
5ff2b6e1a1
commit
e1d384e769
@ -42,6 +42,7 @@ var RoutingProxy = exports.RoutingProxy = function (options) {
|
||||
//
|
||||
this.target = {};
|
||||
this.target.https = options.target && options.target.https;
|
||||
this.target.maxSockets = options.target && options.target.maxSockets;
|
||||
|
||||
//
|
||||
// Setup other default options to be used for instances of
|
||||
@ -91,6 +92,7 @@ RoutingProxy.prototype.add = function (options) {
|
||||
options.target.socketPath = options.target.socketPath || options.socketPath;
|
||||
options.target.https = this.target && this.target.https ||
|
||||
options.target && options.target.https;
|
||||
options.target.maxSockets = this.target && this.target.maxSockets;
|
||||
|
||||
//
|
||||
// Setup options to pass-thru to the new `HttpProxy` instance
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user