mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Use \Arokettu\Bencode\ instead \SandFox\Bencode\ (#932)
This commit is contained in:
parent
cb4516f869
commit
c6fe4241e3
5 changed files with 14 additions and 14 deletions
|
@ -23,14 +23,14 @@ if ($bb_cfg['tracker']['bt_off']) {
|
|||
//
|
||||
function silent_exit($msg = '')
|
||||
{
|
||||
echo \SandFox\Bencode\Bencode::encode(['warning message' => str_compact($msg)]);
|
||||
echo \Arokettu\Bencode\Bencode::encode(['warning message' => str_compact($msg)]);
|
||||
|
||||
exit;
|
||||
}
|
||||
|
||||
function error_exit($msg = '')
|
||||
{
|
||||
echo \SandFox\Bencode\Bencode::encode(['failure reason' => str_compact($msg)]);
|
||||
echo \Arokettu\Bencode\Bencode::encode(['failure reason' => str_compact($msg)]);
|
||||
|
||||
exit;
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ function drop_fast_announce($lp_info, $lp_cached_peers = [])
|
|||
|
||||
function msg_die($msg)
|
||||
{
|
||||
$output = \SandFox\Bencode\Bencode::encode([
|
||||
$output = \Arokettu\Bencode\Bencode::encode([
|
||||
'min interval' => (int)1800,
|
||||
'failure reason' => (string)$msg,
|
||||
]);
|
||||
|
@ -74,7 +74,7 @@ function dummy_exit($interval = 1800, $cache_dict = [])
|
|||
$output['peers'] = $cache_dict['peers'];
|
||||
}
|
||||
|
||||
$output = \SandFox\Bencode\Bencode::encode($output);
|
||||
$output = \Arokettu\Bencode\Bencode::encode($output);
|
||||
|
||||
die($output);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue