PatchBot/modules/DNSCryptProxy.php
2020-05-01 17:33:01 +02:00

14 lines
369 B
PHP

<?php
class DNSCryptProxy extends PatchBase {
function __construct() {
parent::__construct('Frank Denis', 'dnscrypt-proxy', 'https://github.com/DNSCrypt/dnscrypt-proxy');
}
function check() : bool {
if ($this->fetch('https://api.github.com/repos/DNSCrypt/dnscrypt-proxy/releases/latest', true))
return $this->parse_json('tag_name');
return false;
}
}
?>