External bencode library and some other changes.

This commit is contained in:
Yuriy Pikhtarev 2017-05-26 02:21:46 +03:00
commit bb6f772627
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
10 changed files with 137 additions and 85 deletions

View file

@ -75,7 +75,7 @@ function error_exit($msg = '')
silent_exit();
echo bencode(array('failure reason' => str_compact($msg)));
echo \Rych\Bencode\Bencode::encode(['failure reason' => str_compact($msg)]);
tracker_exit();
}