Used new Bencoder library 🔩 (#791)

Co-authored-by: Constantine Kovalensky <45331093+kovalensky@users.noreply.github.com>
This commit is contained in:
Roman Kelesidis 2023-06-08 11:45:20 +07:00 committed by GitHub
commit 2369e4cc0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 154 additions and 75 deletions

View file

@ -30,7 +30,7 @@ $info_hash = $_GET['info_hash'];
function msg_die($msg)
{
$output = \Rych\Bencode\Bencode::encode([
$output = \SandFox\Bencode\Bencode::encode([
'min interval' => (int)1800,
'failure reason' => (string)$msg,
'warning message' => (string)$msg,
@ -57,6 +57,6 @@ $output['files'][$info_hash] = [
'incomplete' => (int)$row['leechers'],
];
echo \Rych\Bencode\Bencode::encode($output);
echo \SandFox\Bencode\Bencode::encode($output);
exit;