ostium.proto.valid_ip

ostium.proto

valid_ip(ip) -> ok

Check that a string is plausibly an IP address

A shape check only: up to 45 bytes of hex digits, dots and colons, which covers IPv4, IPv6 and IPv4-mapped forms. The daemon hands the address to ipset, which is the real parser.