mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-23 02:19:05 +08:00
Update proxy.ts
This commit is contained in:
parent
e4ae385d1a
commit
5d8e1ee68b
@ -73,10 +73,10 @@ export function checkBypass(reqUrl: URL): boolean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isLoopbackAddress(host: string): boolean {
|
function isLoopbackAddress(host: string): boolean {
|
||||||
const hostUpper = host.toUpperCase()
|
const hostLower = host.toLowerCase()
|
||||||
return (
|
return (
|
||||||
hostUpper === 'LOCALHOST' ||
|
hostLower === 'localhost' ||
|
||||||
hostUpper.startsWith('127.') ||
|
hostLower.startsWith('127.') ||
|
||||||
hostUpper.startsWith('::1')
|
hostLower.startsWith('::1')
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user