Minor improvements (#241)

* Minor improvements

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2023-09-16 23:30:36 +07:00 committed by GitHub
parent dabdd2a253
commit 736e519c8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@
**Merged pull requests:**
- Release v2.1.5-2023.09 🎉
- Minor improvements [\#235](https://github.com/torrentpier/torrentpier-lts/pull/235), [\#236](https://github.com/torrentpier/torrentpier-lts/pull/236), [\#237](https://github.com/torrentpier/torrentpier-lts/pull/237), [\#238](https://github.com/torrentpier/torrentpier-lts/pull/238), [\#239](https://github.com/torrentpier/torrentpier-lts/pull/239), [\#240](https://github.com/torrentpier/torrentpier-lts/pull/240) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#235](https://github.com/torrentpier/torrentpier-lts/pull/235), [\#236](https://github.com/torrentpier/torrentpier-lts/pull/236), [\#237](https://github.com/torrentpier/torrentpier-lts/pull/237), [\#238](https://github.com/torrentpier/torrentpier-lts/pull/238), [\#239](https://github.com/torrentpier/torrentpier-lts/pull/239), [\#240](https://github.com/torrentpier/torrentpier-lts/pull/240), [\#241](https://github.com/torrentpier/torrentpier-lts/pull/241) ([belomaxorka](https://github.com/belomaxorka))
## [v2.1.5-2023.08](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.08) (2023-09-04)
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.07...v2.1.5-2023.08)

View File

@ -487,8 +487,8 @@ if (!$output)
LIMIT 1
");
$seeders = isset($row['seeders']) ? $row['seeders'] : 0;
$leechers = isset($row['leechers']) ? $row['leechers'] : 0;
$seeders = isset($row['seeders']) ? $row['seeders'] : ($seeder ? 1 : 0);
$leechers = isset($row['leechers']) ? $row['leechers'] : (!$seeder ? 1 : 0);
}
$output = array(

View File

@ -89,7 +89,7 @@ $bb_cfg['script_path'] = '/';
$bb_cfg['gzip_compress'] = true; // compress output
// Tracker
$bb_cfg['announce_interval'] = 2400; // Announce interval (default: 1800)
$bb_cfg['announce_interval'] = 1800; // Announce interval (default: 1800)
$bb_cfg['passkey_key'] = 'uk'; // Passkey key name in GET request
$bb_cfg['ignore_reported_ip'] = false; // Ignore IP reported by client
$bb_cfg['verify_reported_ip'] = true; // Verify IP reported by client against $_SERVER['HTTP_X_FORWARDED_FOR']