File tree 4 files changed +10
-40
lines changed
4 files changed +10
-40
lines changed Original file line number Diff line number Diff line change @@ -7195,10 +7195,6 @@ function checkBypass(reqUrl) {
7195
7195
if (!reqUrl.hostname) {
7196
7196
return false;
7197
7197
}
7198
- const reqHost = reqUrl.hostname;
7199
- if (isLoopbackAddress(reqHost)) {
7200
- return true;
7201
- }
7202
7198
const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
7203
7199
if (!noProxy) {
7204
7200
return false;
@@ -7224,24 +7220,13 @@ function checkBypass(reqUrl) {
7224
7220
.split(',')
7225
7221
.map(x => x.trim().toUpperCase())
7226
7222
.filter(x => x)) {
7227
- if (upperNoProxyItem === '*' ||
7228
- upperReqHosts.some(x => x === upperNoProxyItem ||
7229
- x.endsWith(`.${upperNoProxyItem}`) ||
7230
- (upperNoProxyItem.startsWith('.') &&
7231
- x.endsWith(`${upperNoProxyItem}`)))) {
7223
+ if (upperReqHosts.some(x => x === upperNoProxyItem)) {
7232
7224
return true;
7233
7225
}
7234
7226
}
7235
7227
return false;
7236
7228
}
7237
7229
exports.checkBypass = checkBypass;
7238
- function isLoopbackAddress(host) {
7239
- const hostLower = host.toLowerCase();
7240
- return (hostLower === 'localhost' ||
7241
- hostLower.startsWith('127.') ||
7242
- hostLower.startsWith('[::1]') ||
7243
- hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
7244
- }
7245
7230
//# sourceMappingURL=proxy.js.map
7246
7231
7247
7232
/***/ }),
Original file line number Diff line number Diff line change @@ -8382,10 +8382,6 @@ function checkBypass(reqUrl) {
8382
8382
if (!reqUrl.hostname) {
8383
8383
return false;
8384
8384
}
8385
- const reqHost = reqUrl.hostname;
8386
- if (isLoopbackAddress(reqHost)) {
8387
- return true;
8388
- }
8389
8385
const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
8390
8386
if (!noProxy) {
8391
8387
return false;
@@ -8411,24 +8407,13 @@ function checkBypass(reqUrl) {
8411
8407
.split(',')
8412
8408
.map(x => x.trim().toUpperCase())
8413
8409
.filter(x => x)) {
8414
- if (upperNoProxyItem === '*' ||
8415
- upperReqHosts.some(x => x === upperNoProxyItem ||
8416
- x.endsWith(`.${upperNoProxyItem}`) ||
8417
- (upperNoProxyItem.startsWith('.') &&
8418
- x.endsWith(`${upperNoProxyItem}`)))) {
8410
+ if (upperReqHosts.some(x => x === upperNoProxyItem)) {
8419
8411
return true;
8420
8412
}
8421
8413
}
8422
8414
return false;
8423
8415
}
8424
8416
exports.checkBypass = checkBypass;
8425
- function isLoopbackAddress(host) {
8426
- const hostLower = host.toLowerCase();
8427
- return (hostLower === 'localhost' ||
8428
- hostLower.startsWith('127.') ||
8429
- hostLower.startsWith('[::1]') ||
8430
- hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
8431
- }
8432
8417
//# sourceMappingURL=proxy.js.map
8433
8418
8434
8419
/***/ }),
Original file line number Diff line number Diff line change 34
34
"semver" : " ^7.1.3"
35
35
},
36
36
"devDependencies" : {
37
- "@actions/http-client" : " ^2.1.0 " ,
37
+ "@actions/http-client" : " ^2.0.1 " ,
38
38
"@types/jest" : " ^27.0.2" ,
39
39
"@types/node" : " ^16.11.25" ,
40
40
"@types/semver" : " ^7.1.0" ,
You can’t perform that action at this time.
0 commit comments