MCPcopy
hub / github.com/FlowiseAI/Flowise / isIPv4

Function isIPv4

packages/server/src/utils/ipValidation.ts:28–30  ·  view source on GitHub ↗
(ip: string)

Source from the content-addressed store, hash-verified

26 * @returns `true` if the string is a valid IPv4 address, `false` otherwise
27 */
28export function isIPv4(ip: string): boolean {
29 return isIP(ip) === 4
30}
31
32/**
33 * Checks if a string is a valid IPv6 address.

Callers 2

sanitizeIPAddressFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected