Skip to content

basalt / webhooks/src / isPrivateIp

Function: isPrivateIp() ​

> isPrivateIp(ip): boolean

Defined in: webhooks/src/ssrf.ts:133

True for loopback, private, link-local, CGNAT, ULA and reserved ranges.

Parameters ​

ip ​

string

Returns ​

boolean

Released under the MIT License.