aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/plugs/remote_ip.ex
AgeCommit message (Collapse)Author
2020-10-13moving plugs into web dirAlexander Strizhakov
2020-10-07Apply 2 suggestion(s) to 2 file(s)feld
2020-10-06CredoMark Felder
2020-10-06Move hardcoded default configuration into config.exsMark Felder
2020-10-05Add helper function to convert single IPs into CIDR format if they were not ↵Mark Felder
provided that way
2020-03-16rate limiter: disable based on if remote ip was found, not on if the plug ↵rinpatch
was enabled The current rate limiter disable logic won't trigger when the remote ip is not forwarded, only when the remoteip plug is not enabled, which is not the case on most instances since it's enabled by default. This changes the behavior to warn and disable when the remote ip was not forwarded, even if the RemoteIP plug is enabled. Also closes #1620
2020-03-02Bump copyright years of files changed after 2020-01-07Haelwenn (lanodan) Monnier
Done via the following command: git diff fcd5dd259a1700a045be902b43391b0d1bd58a5b --stat --name-only | xargs sed -i '/Pleroma Authors/c# Copyright © 2017-2020 Pleroma Authors <https:\/\/pleroma.social\/>'
2020-01-30RemoteIp: only trust X-Forwarded-Forrinpatch
Our nginx config will happily pass `Forwarded`/`X-Real-IP` from the client. Caddy, Apache and Varnish pass `X-Forwarded-For` as well anyway.
2019-09-27Add `remote_ip` plugminibikini