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;
}
|