kong.ip

    This module can be used to determine whether or not a given IP address is in the range of trusted IP addresses defined by the configuration property.

    Trusted IP addresses are those that are known to send correct replacement addresses for clients (as per the chosen header field, for example X-Forwarded-*).

    Depending on the trusted_ips configuration property, this function returns whether a given IP is trusted or not.

    Both ipv4 and ipv6 are supported.

    Parameters

    Returns