PatchBot/modules/ZeroTierOne.php
2024-03-02 10:50:20 +01:00

14 lines
351 B
PHP

<?php
class ZeroTierOne extends PatchBase {
function __construct() {
parent::__construct('ZeroTier Inc.', 'ZeroTier', 'https://www.zerotier.com/download/');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/zerotier/ZeroTierOne/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}
?>