mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Prioritize returning leecher list for seeder announces (#961)
* Show IPv6 peers for cached announces
This commit is contained in:
parent
8f4d00c1cc
commit
50e305390d
3 changed files with 10 additions and 3 deletions
|
@ -74,6 +74,10 @@ function dummy_exit($interval = 1800, $cache_dict = [])
|
|||
$output['peers'] = $cache_dict['peers'];
|
||||
}
|
||||
|
||||
if (isset($cache_dict['peers6'])) {
|
||||
$output['peers6'] = $cache_dict['peers6'];
|
||||
}
|
||||
|
||||
$output = \Arokettu\Bencode\Bencode::encode($output);
|
||||
|
||||
die($output);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue