mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Update announce.php
This commit is contained in:
parent
f589cd78b0
commit
2a868b2fee
1 changed files with 1 additions and 2 deletions
|
@ -215,9 +215,8 @@ if ($lp_info) {
|
|||
// Check hybrid status
|
||||
if (!empty($row['info_hash']) && !empty($row['info_hash_v2'])) {
|
||||
$stat_protocol = match ((int)$bb_cfg['tracker']['hybrid_stat_protocol']) {
|
||||
1 => $row['info_hash'],
|
||||
2 => substr($row['info_hash_v2'], 0, 20),
|
||||
default => $row['info_hash']
|
||||
default => $row['info_hash'] // 1
|
||||
};
|
||||
if ($info_hash !== $stat_protocol) {
|
||||
$hybrid_unrecord = true; // This allows us to announce only for one info-hash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue