File tree Expand file tree Collapse file tree 4 files changed +13
-6
lines changed
node_modules/@npmcli/agent/node_modules/https-proxy-agent Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,11 @@ class HttpsProxyAgent extends agent_base_1.Agent {
8181 let socket ;
8282 if ( proxy . protocol === 'https:' ) {
8383 debug ( 'Creating `tls.Socket`: %o' , this . connectOpts ) ;
84- socket = tls . connect ( this . connectOpts ) ;
84+ const servername = this . connectOpts . servername || this . connectOpts . host ;
85+ socket = tls . connect ( {
86+ ...this . connectOpts ,
87+ servername : servername && net . isIP ( servername ) ? undefined : servername
88+ } ) ;
8589 }
8690 else {
8791 debug ( 'Creating `net.Socket`: %o' , this . connectOpts ) ;
Original file line number Diff line number Diff line change @@ -47,7 +47,10 @@ function parseProxyResponse(socket) {
4747 read ( ) ;
4848 return ;
4949 }
50- const headerParts = buffered . slice ( 0 , endOfHeaders ) . toString ( 'ascii' ) . split ( '\r\n' ) ;
50+ const headerParts = buffered
51+ . slice ( 0 , endOfHeaders )
52+ . toString ( 'ascii' )
53+ . split ( '\r\n' ) ;
5154 const firstLine = headerParts . shift ( ) ;
5255 if ( ! firstLine ) {
5356 socket . destroy ( ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " https-proxy-agent" ,
3- "version" : " 7.0.1 " ,
3+ "version" : " 7.0.2 " ,
44 "description" : " An HTTP(s) proxy `http.Agent` implementation for HTTPS" ,
55 "main" : " ./dist/index.js" ,
66 "types" : " ./dist/index.d.ts" ,
Original file line number Diff line number Diff line change 24202420 }
24212421 },
24222422 "node_modules/@npmcli/agent/node_modules/https-proxy-agent": {
2423- "version": "7.0.1 ",
2424- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.1 .tgz",
2425- "integrity": "sha512-Eun8zV0kcYS1g19r78osiQLEFIRspRUDd9tIfBCTBPBeMieF/EsJNL8VI3xOIdYRDEkjQnqOYPsZ2DsWsVsFwQ ==",
2423+ "version": "7.0.2 ",
2424+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2 .tgz",
2425+ "integrity": "sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA ==",
24262426 "inBundle": true,
24272427 "dependencies": {
24282428 "agent-base": "^7.0.2",
You can’t perform that action at this time.
0 commit comments