middleware: sanitize max scrape infohashes

Fixes #268.
This commit is contained in:
Jimmy Zelinskie
2017-02-02 02:19:45 -05:00
parent fb30e9fb03
commit 3f29aa358b
4 changed files with 16 additions and 6 deletions

View File

@@ -14,6 +14,9 @@ chihaya:
# The default number of peers returned in an announce.
default_numwant: 25
# The number of infohashes a single scrape can request before being truncated.
max_scrape_infohashes: 50
# This block defines configuration for the tracker's HTTP interface.
# If you do not wish to run this, delete this section.
http: