Skip to content

talkcontrol


talkcontrol / server/services/presentation-url / isPrivateAddress

Function: isPrivateAddress()

isPrivateAddress(ip): boolean

Defined in: src/server/services/presentation-url.ts:58

Tells whether an IP literal belongs to a private or special-purpose range: loopback, RFC1918, link-local (incl. cloud metadata), unspecified, and IPv6 equivalents.

Parameters

ip

string

IPv4 or IPv6 literal

Returns

boolean

true when the address must not be reached by the proxy