Add cloudflared
This commit is contained in:
parent
261567f9a1
commit
e5de81ae4c
1 changed files with 14 additions and 0 deletions
14
modules/Cloudflared.php
Normal file
14
modules/Cloudflared.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue