Tftpd64: fetch github api
This commit is contained in:
parent
199c761a0a
commit
2077144911
1 changed files with 3 additions and 3 deletions
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
class Tftpd32 extends PatchBase {
|
||||
function __construct() {
|
||||
parent::__construct('Philippe Jounin', 'Tftpd64', 'https://tftpd32.jounin.net/tftpd32_download.html');
|
||||
parent::__construct('Philippe Jounin', 'Tftpd64', 'http://www.tftpd64.com/');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://pjo2.github.io/tftpd64/'))
|
||||
return $this->parse('_/[Tt]ftpd64-([\d\.]+)-setup\.exe_');
|
||||
if ($this->fetch_json('https://api.github.com/repos/PJO2/tftpd64/releases/latest'))
|
||||
return $this->parse_json('tag_name');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue