Pike v8.1 release 6

Method NetUtils.IpRangeLookup()->lookup()


Method lookup

mixed lookup(int|string ipstr)

Description

Looks up an IP address and returns the associated information, if any.

Parameter ipstr

The IP address in string or binary form.

Returns

The information associated with the most-specific IP range matching ipstr.