mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-16 04:12:19 +01:00
disabled announce access from browser
This commit is contained in:
6
config/env/torrents.js
vendored
6
config/env/torrents.js
vendored
@@ -36,7 +36,11 @@ module.exports = {
|
||||
]
|
||||
},
|
||||
clientBlackList: [
|
||||
{name: 'Transmission/2.93'}
|
||||
{name: 'Transmission/2.93'},
|
||||
{name: 'Mozilla'},
|
||||
{name: 'AppleWebKit'},
|
||||
{name: 'Safari'},
|
||||
{name: 'Chrome'}
|
||||
],
|
||||
torrentSalesType: {
|
||||
name: 'SALESTYPE',
|
||||
|
||||
@@ -214,7 +214,7 @@ exports.announce = function (req, res) {
|
||||
var inlist = false;
|
||||
if (ua) {
|
||||
config.meanTorrentConfig.clientBlackList.forEach(function (client) {
|
||||
if (client.name.toUpperCase() === ua.toUpperCase()) {
|
||||
if (ua.toUpperCase().indexOf(client.name.toUpperCase()) >= 0) {
|
||||
inlist = true;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user