Added Freeleech (#143)

* Added Freeleech

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2023-04-08 15:37:24 +07:00 committed by GitHub
parent 08440a0d03
commit 8a71c1ba89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -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)

View File

@ -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;

View File

@ -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;