Commit 03f3d2e 1 parent e0163c6 commit 03f3d2e Copy full SHA for 03f3d2e
File tree 4 files changed +13
-6
lines changed
node_modules/@npmcli/agent/node_modules/https-proxy-agent
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 {
81
81
let socket ;
82
82
if ( proxy . protocol === 'https:' ) {
83
83
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
+ } ) ;
85
89
}
86
90
else {
87
91
debug ( 'Creating `net.Socket`: %o' , this . connectOpts ) ;
Original file line number Diff line number Diff line change @@ -47,7 +47,10 @@ function parseProxyResponse(socket) {
47
47
read ( ) ;
48
48
return ;
49
49
}
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' ) ;
51
54
const firstLine = headerParts . shift ( ) ;
52
55
if ( ! firstLine ) {
53
56
socket . destroy ( ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " https-proxy-agent" ,
3
- "version" : " 7.0.1 " ,
3
+ "version" : " 7.0.2 " ,
4
4
"description" : " An HTTP(s) proxy `http.Agent` implementation for HTTPS" ,
5
5
"main" : " ./dist/index.js" ,
6
6
"types" : " ./dist/index.d.ts" ,
Original file line number Diff line number Diff line change 2420
2420
}
2421
2421
},
2422
2422
"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 ==",
2426
2426
"inBundle": true,
2427
2427
"dependencies": {
2428
2428
"agent-base": "^7.0.2",
You can’t perform that action at this time.
0 commit comments