File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export const anonymizeProxy = async (
67
67
return {
68
68
requestAuthentication : false ,
69
69
upstreamProxyUrl : proxyUrl ,
70
- ignoreUpstreamProxyCertificate : ignoreProxyCertificate
70
+ ignoreUpstreamProxyCertificate : ignoreProxyCertificate ,
71
71
} ;
72
72
} ,
73
73
} ) as Server & { port : number } ;
Original file line number Diff line number Diff line change @@ -84,10 +84,10 @@ export const chain = (
84
84
options . headers . push ( 'proxy-authorization' , getBasicAuthorizationHeader ( proxy ) ) ;
85
85
}
86
86
87
- const client = proxy . protocol === 'https:' ?
88
- https . request ( proxy . origin , {
87
+ const client = proxy . protocol === 'https:'
88
+ ? https . request ( proxy . origin , {
89
89
...options as unknown as https . RequestOptions ,
90
- rejectUnauthorized : ! handlerOpts . ignoreUpstreamProxyCertificate
90
+ rejectUnauthorized : ! handlerOpts . ignoreUpstreamProxyCertificate ,
91
91
} )
92
92
: http . request ( proxy . origin , options as unknown as http . RequestOptions ) ;
93
93
Original file line number Diff line number Diff line change @@ -114,12 +114,12 @@ export const forward = async (
114
114
} ;
115
115
116
116
// We have to force cast `options` because @types/node doesn't support an array.
117
- const client = origin ! . startsWith ( 'https:' ) ?
118
- https . request ( origin ! , {
117
+ const client = origin ! . startsWith ( 'https:' )
118
+ ? https . request ( origin ! , {
119
119
...options as unknown as https . RequestOptions ,
120
- rejectUnauthorized : handlerOpts . upstreamProxyUrlParsed ? ! handlerOpts . ignoreUpstreamProxyCertificate : undefined
120
+ rejectUnauthorized : handlerOpts . upstreamProxyUrlParsed ? ! handlerOpts . ignoreUpstreamProxyCertificate : undefined ,
121
121
} , requestCallback )
122
-
122
+
123
123
: http . request ( origin ! , options as unknown as http . RequestOptions , requestCallback ) ;
124
124
125
125
client . once ( 'socket' , ( socket : SocketWithPreviousStats ) => {
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export async function createTunnel(
70
70
sourceSocket,
71
71
handlerOpts : {
72
72
upstreamProxyUrlParsed : parsedProxyUrl ,
73
- ignoreUpstreamProxyCertificate : options ?. ignoreProxyCertificate ?? false
73
+ ignoreUpstreamProxyCertificate : options ?. ignoreProxyCertificate ?? false ,
74
74
} ,
75
75
server : server as net . Server & { log : typeof log } ,
76
76
isPlain : true ,
You can’t perform that action at this time.
0 commit comments