mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Minor improvements (#895)
This commit is contained in:
parent
c6b3a80d96
commit
b78127173f
4 changed files with 20 additions and 16 deletions
|
@ -60,3 +60,14 @@ function msg_die($msg)
|
|||
|
||||
die($output);
|
||||
}
|
||||
|
||||
function dummy_exit($interval = 1800)
|
||||
{
|
||||
$output = \SandFox\Bencode\Bencode::encode([
|
||||
'interval' => (int)$interval,
|
||||
'min interval' => (int)$interval,
|
||||
'peers' => (string)DUMMY_PEER,
|
||||
]);
|
||||
|
||||
die($output);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue