mafintosh / torrent-stream

The low level streaming torrent engine that peerflix uses
MIT License
1.94k stars 227 forks source link

Blacklisting a tracker #161

Open vankasteelj opened 8 years ago

vankasteelj commented 8 years ago

It could be interesting, as it's already possible with trackers option, to have a blacklist array to forcefully forbid trackers.

The best would be for the blacklist to be regex compatible, for example:

torrent-stream(magnet, {
    blacklist: [
        'demonii', // blacklists all trackers containing 'demonii' in the uri
        'udp://9.rarbg.com:2710/announce' // blacklists only this exact tracker/port
    ]
});

What do you think?