pfSense: parse webpage
This commit is contained in:
parent
59ecbac716
commit
6340496347
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue