Add Tor
This commit is contained in:
parent
a00f78bf0b
commit
de12497a1e
1 changed files with 14 additions and 0 deletions
14
modules/Tor.php
Normal file
14
modules/Tor.php
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class Tor extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('Tor Project', 'Tor', 'https://www.torproject.org/download/');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch('https://www.torproject.org/download/tor/'))
|
||||||
|
return $this->parse('_//dist\.torproject\.org/tor-([\d\.]+)\.tar\.gz_');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue