MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / ssrfError

Function ssrfError

source code/utils/hooks/ssrfGuard.ts:287–296  ·  view source on GitHub ↗
(hostname: string, address: string)

Source from the content-addressed store, hash-verified

285}
286
287function ssrfError(hostname: string, address: string): NodeJS.ErrnoException {
288 const err = new Error(
289 `HTTP hook blocked: ${hostname} resolves to ${address} (private/link-local address). Loopback (127.0.0.1, ::1) is allowed for local dev.`,
290 )
291 return Object.assign(err, {
292 code: 'ERR_HTTP_HOOK_BLOCKED_ADDRESS',
293 hostname,
294 address,
295 })
296}

Callers 1

ssrfGuardedLookupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected