Prioritize returning leecher list for seeder announces (#961)

* Show IPv6 peers for cached announces
This commit is contained in:
Cønstantine Kovalensky 2023-10-06 16:15:11 +04:00 committed by GitHub
commit 50e305390d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

View file

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