OpenVPN: use git releases
This commit is contained in:
parent
0f63efdec4
commit
b38c8b8ff0
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ class OpenVPN extends PatchBase {
|
|||
parent::__construct('OpenVPN Inc.', 'OpenVPN', 'https://openvpn.net/community-downloads/');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch_json('https://api.github.com/repos/OpenVPN/openvpn/tags'))
|
||||
return $this->parse_json('name');
|
||||
if ($this->fetch_json('https://api.github.com/repos/OpenVPN/openvpn/releases/latest'))
|
||||
return $this->parse_json('tag_name');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue