Disable rate limiter for socket/localhost (unless RemoteIp is enabled)

This commit is contained in:
Maxim Filippov 2019-12-13 19:00:26 +03:00
commit eb11c60289
4 changed files with 67 additions and 7 deletions

View file

@ -766,6 +766,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do
end
test "rate limit", %{conn: conn} do
Pleroma.Config.put([Pleroma.Plugs.RemoteIp, :enabled], true)
app_token = insert(:oauth_token, user: nil)
conn =