mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-02-07 13:59:07 +00:00
doc: trust proxy opt
This commit is contained in:
parent
ebbeb2fc49
commit
8d156c7cc0
@ -189,6 +189,7 @@ var server = new Server({
|
|||||||
http: true, // enable http server? [default=true]
|
http: true, // enable http server? [default=true]
|
||||||
ws: true, // enable websocket server? [default=true]
|
ws: true, // enable websocket server? [default=true]
|
||||||
stats: true, // enable web-based statistics? [default=true]
|
stats: true, // enable web-based statistics? [default=true]
|
||||||
|
trustProxy: false // enable trusting x-forwarded-for header for remote IP [default=false]
|
||||||
filter: function (infoHash, params, cb) {
|
filter: function (infoHash, params, cb) {
|
||||||
// Blacklist/whitelist function for allowing/disallowing torrents. If this option is
|
// Blacklist/whitelist function for allowing/disallowing torrents. If this option is
|
||||||
// omitted, all torrents are allowed. It is possible to interface with a database or
|
// omitted, all torrents are allowed. It is possible to interface with a database or
|
||||||
|
Loading…
Reference in New Issue
Block a user