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

@@ -16,6 +16,7 @@ config:
prometheus_addr: 0.0.0.0:6880
max_numwant: 50
default_numwant: 25
max_scrape_infohashes: 50
http:
addr: 0.0.0.0:6881
allow_ip_spoofing: true