From 20771449113c9d9552f8052ddaec44966239b063 Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Sat, 5 Jul 2025 15:38:12 +0200 Subject: [PATCH] Tftpd64: fetch github api --- modules/Tftpd32.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/Tftpd32.php b/modules/Tftpd32.php index 7561a4b..07377b7 100644 --- a/modules/Tftpd32.php +++ b/modules/Tftpd32.php @@ -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; } }