feat(config): add config to disable trackers
This commit is contained in:
parent
466d10ccd5
commit
6531b5315f
@ -11,6 +11,7 @@ let config = {
|
||||
udpTrackersTimeout: 3 * 60 * 1000,
|
||||
peerId: undefined,
|
||||
language: 'en',
|
||||
trackers: true,
|
||||
|
||||
p2p: true,
|
||||
p2pConnections: 10,
|
||||
|
@ -96,6 +96,13 @@ module.exports = function (send, recive, dataDirectory, version, env)
|
||||
constructor(sphinx)
|
||||
{
|
||||
this.sphinx = sphinx
|
||||
if(!config.trackers)
|
||||
{
|
||||
logT('tracker', 'trackers disabled')
|
||||
this.trackers = []
|
||||
return
|
||||
}
|
||||
|
||||
this.trackers = [
|
||||
new Rutracker,
|
||||
new Nyaa
|
||||
|
Loading…
Reference in New Issue
Block a user