File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ Proxy.prototype.listen = function(options, callback) {
4949 this . httpPort = options . port || 8080 ;
5050 this . timeout = options . timeout || 0 ;
5151 this . keepAlive = ! ! options . keepAlive ;
52- this . httpAgent = options . httpAgent || new http . Agent ( { keepAlive : this . keepAlive } ) ;
53- this . httpsAgent = options . httpsAgent || new https . Agent ( { keepAlive : this . keepAlive } ) ;
52+ this . httpAgent = typeof ( options . httpAgent ) !== "undefined" ? options . httpAgent : new http . Agent ( { keepAlive : this . keepAlive } ) ;
53+ this . httpsAgent = typeof ( options . httpsAgent ) !== "undefined" ? options . httpsAgent : new https . Agent ( { keepAlive : this . keepAlive } ) ;
5454 this . forceSNI = ! ! options . forceSNI ;
5555 if ( this . forceSNI && ! this . silent ) {
5656 console . log ( 'SNI enabled. Clients not supporting SNI may fail' ) ;
You can’t perform that action at this time.
0 commit comments