aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-06-25 16:27:35 +0200
committerChocobozzz <me@florianbigard.com>2020-06-25 16:28:07 +0200
commitdb48de8597897e5024f8e9ed5acb1a8f40748169 (patch)
tree5703f2fe67de886acffb39867c6dc7f2ea24368b /server/initializers/constants.ts
parentd4bf24df8ed7032d6db1b04a716e3881679bbf46 (diff)
downloadPeerTube-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.ts3
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'
633const TRACKER_RATE_LIMITS = { 633const 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
639const P2P_MEDIA_LOADER_PEER_VERSION = 2 640const P2P_MEDIA_LOADER_PEER_VERSION = 2