pfSense: parse webpage

This commit is contained in:
Steffen Lange 2024-02-21 17:51:32 +01:00
parent 59ecbac716
commit 6340496347

View file

@ -6,8 +6,8 @@ class PfSense extends PatchBase {
$this->patch->setBranch('Community Edition'); $this->patch->setBranch('Community Edition');
} }
function check() : bool { function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/pfsense/pfsense/tags')) if ($this->fetch('https://www.pfsense.org/download/'))
return $this->parse_json('name'); return $this->parse('/pfSense-CE-([\d\._]+)-RELEASE-amd64\.iso\.gz/');
return false; return false;
} }
} }