diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2023-04-03 14:19:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 14:19:41 +0200 |
commit | c5339fa336329ea8c0a6e7d6ba3f02cb69e226b6 (patch) | |
tree | 69f0a2f56a0960e0d047256a347d1113f8a95565 /lib/private/Server.php | |
parent | 1000b463a1fd235fb5f90f85a48ad747e4614a74 (diff) | |
parent | 454281af03fb0e917f0135cd6ce51fec5024a0b4 (diff) | |
download | nextcloud-server-c5339fa336329ea8c0a6e7d6ba3f02cb69e226b6.tar.gz nextcloud-server-c5339fa336329ea8c0a6e7d6ba3f02cb69e226b6.zip |
Merge pull request #37542 from nextcloud/bugfix/noid/allow-to-opt-out-of-ratelimit-for-testing
feat(security): Allow to opt-out of ratelimit protection, e.g. for te…
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index 92ef5d50513..18ffc58dd15 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -846,11 +846,13 @@ class Server extends ServerContainer implements IServerContainer { $cacheFactory = $c->get(ICacheFactory::class); if ($cacheFactory->isAvailable()) { $backend = new \OC\Security\RateLimiting\Backend\MemoryCacheBackend( + $c->get(AllConfig::class), $this->get(ICacheFactory::class), new \OC\AppFramework\Utility\TimeFactory() ); } else { $backend = new \OC\Security\RateLimiting\Backend\DatabaseBackend( + $c->get(AllConfig::class), $c->get(IDBConnection::class), new \OC\AppFramework\Utility\TimeFactory() ); |