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,
|
udpTrackersTimeout: 3 * 60 * 1000,
|
||||||
peerId: undefined,
|
peerId: undefined,
|
||||||
language: 'en',
|
language: 'en',
|
||||||
|
trackers: true,
|
||||||
|
|
||||||
p2p: true,
|
p2p: true,
|
||||||
p2pConnections: 10,
|
p2pConnections: 10,
|
||||||
|
@ -96,6 +96,13 @@ module.exports = function (send, recive, dataDirectory, version, env)
|
|||||||
constructor(sphinx)
|
constructor(sphinx)
|
||||||
{
|
{
|
||||||
this.sphinx = sphinx
|
this.sphinx = sphinx
|
||||||
|
if(!config.trackers)
|
||||||
|
{
|
||||||
|
logT('tracker', 'trackers disabled')
|
||||||
|
this.trackers = []
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
this.trackers = [
|
this.trackers = [
|
||||||
new Rutracker,
|
new Rutracker,
|
||||||
new Nyaa
|
new Nyaa
|
||||||
|
Loading…
Reference in New Issue
Block a user