Improved BitTorrent clients ban functionality (#1657)

* Minor improvements

* Update config.php

* Update config.php

* Update config.php

* Update config.php

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update announce.php

* Update main.php

* Update CronHelper.php

* Updated

* Update CHANGELOG.md

* Update announce.php

* Revert "Update announce.php"

This reverts commit 595784acd6.

* Update announce.php

* Update announce.php
This commit is contained in:
Roman Kelesidis 2024-10-14 20:41:22 +07:00 committed by GitHub
commit 04e1adf4ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 25 additions and 5 deletions

View file

@ -100,12 +100,15 @@ $bb_cfg['verify_reported_ip'] = true; // Verify IP reported by client against $_
$bb_cfg['allow_internal_ip'] = false; // Allow internal IP (10.xx.. etc.)
$bb_cfg['client_ban'] = [
'enabled' => false,
// Clients to be blocked, for example, peer id '-UT' will block all uTorrent clients, '-UT2' will block builds starting with 2 (default: false)
'only_allow_mode' => false,
// Clients to be blocked / allowed (in "only allow mode"), for example, peer id '-UT' will block all uTorrent clients, '-UT2' will block builds starting with 2 (default: false)
// The second argument is being shown in the torrent client as a failure message
// Handy client list: https://github.com/transmission/transmission/blob/f85c3b6f8db95d5363f6ec38eee603f146c6adb6/libtransmission/clients.cc#L504
'clients' => [
// 'client_id' => 'Ban reason (can be empty)'
'-UT' => 'uTorrent — NOT ad-free and open-source',
'-MG' => 'Mostly leeching client',
'-ZO' => '',
]
];