diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-25 16:27:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-06-25 16:28:07 +0200 |
commit | db48de8597897e5024f8e9ed5acb1a8f40748169 (patch) | |
tree | 5703f2fe67de886acffb39867c6dc7f2ea24368b /server/initializers/constants.ts | |
parent | d4bf24df8ed7032d6db1b04a716e3881679bbf46 (diff) | |
download | PeerTube-db48de8597897e5024f8e9ed5acb1a8f40748169.tar.gz PeerTube-db48de8597897e5024f8e9ed5acb1a8f40748169.tar.zst PeerTube-db48de8597897e5024f8e9ed5acb1a8f40748169.zip |
Block infohash spammers from tracker
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index dd79c0e16..9a262fd4b 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -633,7 +633,8 @@ const AUDIT_LOG_FILENAME = 'peertube-audit.log' | |||
633 | const TRACKER_RATE_LIMITS = { | 633 | const TRACKER_RATE_LIMITS = { |
634 | INTERVAL: 60000 * 5, // 5 minutes | 634 | INTERVAL: 60000 * 5, // 5 minutes |
635 | ANNOUNCES_PER_IP_PER_INFOHASH: 15, // maximum announces per torrent in the interval | 635 | ANNOUNCES_PER_IP_PER_INFOHASH: 15, // maximum announces per torrent in the interval |
636 | ANNOUNCES_PER_IP: 30 // maximum announces for all our torrents in the interval | 636 | ANNOUNCES_PER_IP: 30, // maximum announces for all our torrents in the interval |
637 | BLOCK_IP_LIFETIME: 60000 * 10 // 10 minutes | ||
637 | } | 638 | } |
638 | 639 | ||
639 | const P2P_MEDIA_LOADER_PEER_VERSION = 2 | 640 | const P2P_MEDIA_LOADER_PEER_VERSION = 2 |