mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-04-09 02:06:16 +02:00
Merge 05893d7ab9 into 44ecf41ca6
This commit is contained in:
commit
1b5d86c3d0
|
|
@ -22,6 +22,8 @@ export function assertNotPrivateUrl(urlString: string): void {
|
||||||
/^169\.254\.\d+\.\d+$/, // Link-local / cloud metadata
|
/^169\.254\.\d+\.\d+$/, // Link-local / cloud metadata
|
||||||
/^\[::1\]$/,
|
/^\[::1\]$/,
|
||||||
/^\[?fe80:/i, // IPv6 link-local
|
/^\[?fe80:/i, // IPv6 link-local
|
||||||
|
/^\[::ffff:/i, // IPv4-mapped IPv6 (e.g. [::ffff:7f00:1] = 127.0.0.1)
|
||||||
|
/^\[::\]$/, // IPv6 all-zeros (equivalent to 0.0.0.0)
|
||||||
]
|
]
|
||||||
|
|
||||||
if (blockedPatterns.some((re) => re.test(hostname))) {
|
if (blockedPatterns.some((re) => re.test(hostname))) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user