mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update announce.php
This commit is contained in:
parent
933e4b3283
commit
87cf935d35
@ -78,11 +78,7 @@ if (strlen($info_hash) != 20)
|
|||||||
{
|
{
|
||||||
msg_die('Invalid info_hash: ' . bin2hex($info_hash));
|
msg_die('Invalid info_hash: ' . bin2hex($info_hash));
|
||||||
}
|
}
|
||||||
if (!isset($peer_id))
|
if (!isset($peer_id) || strlen($peer_id) != 20)
|
||||||
{
|
|
||||||
msg_die('peer_id was not provided');
|
|
||||||
}
|
|
||||||
if (strlen($peer_id) != 20)
|
|
||||||
{
|
{
|
||||||
msg_die('Invalid peer_id: ' . bin2hex($peer_id));
|
msg_die('Invalid peer_id: ' . bin2hex($peer_id));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user