PatchBot/modules/Cloudflared.php
2023-12-20 17:07:12 +01:00

14 lines
415 B
PHP

<?php
class Cloudflared extends PatchBase {
function __construct() {
parent::__construct('Cloudflare Inc.', 'Cloudflare Tunnel client', 'https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/cloudflare/cloudflared/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}
?>