mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-04 03:01:02 +01:00
disabled announce access from browser
This commit is contained in:
@@ -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