Iskra API Reference
    Preparing search index...

    Function getClientIp

    • Resolves the client's IP address, or undefined when it cannot be determined (no socket and no trusted forwarding header).

      Behind trusted proxies only header is read. X-Real-IP used to be the fallback when X-Forwarded-For was missing, and the client decides whether it is: behind a proxy that sets only X-Real-IP, a made-up X-Forwarded-For on each request picked a new rate-limit bucket.

      Parameters

      Returns string | undefined