Compare commits

...

2 commits

View file

@ -17,8 +17,8 @@ class AnnounceRouting extends RouteHandler {
#[HttpGet('/announce')]
#[HttpGet('/announce.php')]
#[HttpGet('/announce/:key')]
#[HttpGet('/announce.php/:key')]
#[HttpGet('/announce/([A-Za-z0-9]+)')]
#[HttpGet('/announce.php/([A-Za-z0-9]+)')]
public function getAnnounce($response, $request, string $key = '') {
if(strlen(inet_pton($_SERVER['REMOTE_ADDR'])) !== 4)
return new AnnounceFailure('Tracker is only supported over IPv4, please reset your DNS cache.');