(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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |