RouterOS: fetch update file

This commit is contained in:
Steffen Lange 2025-12-03 15:15:54 +01:00
parent e669e188fc
commit c2136667c1
3 changed files with 6 additions and 9 deletions

View file

@ -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"', '</thead>');
return $this->parse('/<th>([\d\.]+) Stable<\/th>/');
if ($this->fetch('https://upgrade.mikrotik.com/routeros/NEWESTa7.stable')) {
return $this->parse('/([\d\.]+) [\d]+/');
}
return false;
}