diff --git a/CHANGELOG.md b/CHANGELOG.md index 259bf78e..17beec1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ - Enhanced https check [\#131](https://github.com/torrentpier/torrentpier-lts/pull/131), [\#132](https://github.com/torrentpier/torrentpier-lts/pull/132) ([belomaxorka](https://github.com/belomaxorka)) - Added ability to configure sphinx debug [\#137](https://github.com/torrentpier/torrentpier-lts/pull/137) ([belomaxorka](https://github.com/belomaxorka)) - Redundant pagination, mysql 5.7+ issue [\#140](https://github.com/torrentpier/torrentpier-lts/pull/140) ([belomaxorka](https://github.com/belomaxorka)) +- Added Freeleech [\#143](https://github.com/torrentpier/torrentpier-lts/pull/143) ([belomaxorka](https://github.com/belomaxorka)) - Minor fixes [\#124](https://github.com/torrentpier/torrentpier-lts/pull/124), [\#133](https://github.com/torrentpier/torrentpier-lts/pull/133), [\#135](https://github.com/torrentpier/torrentpier-lts/pull/135), [\#136](https://github.com/torrentpier/torrentpier-lts/pull/136), [\#139](https://github.com/torrentpier/torrentpier-lts/pull/139), [\#142](https://github.com/torrentpier/torrentpier-lts/pull/142) ([belomaxorka](https://github.com/belomaxorka)) ## [v2.1.5-2023.03](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.03) (2023-04-04) diff --git a/bt/announce.php b/bt/announce.php index 70fc7233..6268d47d 100644 --- a/bt/announce.php +++ b/bt/announce.php @@ -363,6 +363,12 @@ if ($tr_cfg['gold_silver_enabled'] && $down_add) } } +// Freeleech +if ($tr_cfg['freeleech'] && $down_add) +{ + $down_add = 0; +} + // Insert/update peer info $peer_info_updated = false; $update_time = ($stopped) ? 0 : TIMENOW; diff --git a/library/config.php b/library/config.php index 3f14d81f..cadf2ff2 100644 --- a/library/config.php +++ b/library/config.php @@ -196,9 +196,10 @@ $tr_cfg = array( 'limit_seed_ips' => 0, 'limit_leech_ips' => 0, 'tor_topic_up' => true, - 'gold_silver_enabled' => true, + 'gold_silver_enabled' => true, // при включенном gold_silver_enabled нужно отключить freeleech. 'retracker' => true, 'retracker_host' => 'http://retracker.local/announce', + 'freeleech' => false, // при включенном freeleech нужно отключить gold_silver_enabled. ); $bb_cfg['show_dl_status_in_search'] = true;