mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-23 00:29:08 +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 {
|
||||
const hostUpper = host.toUpperCase()
|
||||
const hostLower = host.toLowerCase()
|
||||
return (
|
||||
hostUpper === 'LOCALHOST' ||
|
||||
hostUpper.startsWith('127.') ||
|
||||
hostUpper.startsWith('::1')
|
||||
hostLower === 'localhost' ||
|
||||
hostLower.startsWith('127.') ||
|
||||
hostLower.startsWith('::1')
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user