Compare commits
2 commits
2c1fa702aa
...
be44b474e7
Author | SHA1 | Date | |
---|---|---|---|
be44b474e7 | |||
4c74208e2b |
1 changed files with 2 additions and 2 deletions
|
@ -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.');
|
||||
|
|
Loading…
Reference in a new issue