OpenVPN: use git releases

This commit is contained in:
Steffen Lange 2025-06-21 17:18:57 +02:00
parent 0f63efdec4
commit b38c8b8ff0

View file

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