Use \Arokettu\Bencode\ instead \SandFox\Bencode\ (#932)

This commit is contained in:
Roman Kelesidis 2023-10-02 20:32:56 +07:00 committed by GitHub
commit c6fe4241e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 14 deletions

View file

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