From c2136667c1a2d03c3635ffbf8d522e81577c98af Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Wed, 3 Dec 2025 15:15:54 +0100 Subject: [PATCH] RouterOS: fetch update file --- modules/MikroTikRouterOS6.php | 5 ++--- modules/MikroTikRouterOS6LTS.php | 5 ++--- modules/MikroTikRouterOS7.php | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/modules/MikroTikRouterOS6.php b/modules/MikroTikRouterOS6.php index f5ecda7..3c7ebc0 100644 --- a/modules/MikroTikRouterOS6.php +++ b/modules/MikroTikRouterOS6.php @@ -6,9 +6,8 @@ class MikroTikRouterOS6 extends PatchBase { $this->patch->setBranch('v6 Stable'); } function check() : bool { - if ($this->fetch('https://mikrotik.com/download')) { - $this->str_crop('id="routeros6"', ''); - return $this->parse('/([\d\.]+) Stable<\/th>/'); + if ($this->fetch('https://upgrade.mikrotik.com/routeros/NEWESTa6.stable')) { + return $this->parse('/([\d\.]+) [\d]+/'); } return false; } diff --git a/modules/MikroTikRouterOS6LTS.php b/modules/MikroTikRouterOS6LTS.php index 74ed575..cf60e1f 100644 --- a/modules/MikroTikRouterOS6LTS.php +++ b/modules/MikroTikRouterOS6LTS.php @@ -6,9 +6,8 @@ class MikroTikRouterOS6LTS extends PatchBase { $this->patch->setBranch('v6 Long-term'); } function check() : bool { - if ($this->fetch('https://mikrotik.com/download')) { - $this->str_crop('id="routeros6"', ''); - return $this->parse('/([\d\.]+) Long-[Tt]erm<\/th>/'); + if ($this->fetch('https://upgrade.mikrotik.com/routeros/NEWESTa6.long-term')) { + return $this->parse('/([\d\.]+) [\d]+/'); } return false; } diff --git a/modules/MikroTikRouterOS7.php b/modules/MikroTikRouterOS7.php index cfbecbb..17d1296 100644 --- a/modules/MikroTikRouterOS7.php +++ b/modules/MikroTikRouterOS7.php @@ -6,9 +6,8 @@ class MikroTikRouterOS7 extends PatchBase { $this->patch->setBranch('v7 Stable'); } function check() : bool { - if ($this->fetch('https://mikrotik.com/download')) { - $this->str_crop('id="routeros7"', ''); - return $this->parse('/([\d\.]+) Stable<\/th>/'); + if ($this->fetch('https://upgrade.mikrotik.com/routeros/NEWESTa7.stable')) { + return $this->parse('/([\d\.]+) [\d]+/'); } return false; }