(client-ip request)
(client-ip request gcp?)
Parses HTTP request
and returns the originating ip address for the remote client. The
address is then later resolved against the organization autologin configuration. If
gcp?
is true (default) the x-forwarded-for
is taken into account and prioritized,
since it is used by GCP.
Parses HTTP `request` and returns the originating ip address for the remote client. The address is then later resolved against the organization autologin configuration. If `gcp?` is true (default) the `x-forwarded-for` is taken into account and prioritized, since it is used by GCP.
(client-ip-map {:keys [remote-addr]
{:strs [x-real-ip x-forwarded-for]} :headers})
Resolves remote client ip header values.
Resolves remote client ip header values.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close