Update to live URL for big data

This commit is contained in:
Gabor Gyorvari
2018-12-10 13:05:21 +01:00
parent 5cf90cd371
commit afc4cd4ef9

View File

@@ -725,9 +725,8 @@ class MalwareScanner
return $key;
}
private function updateBigData()
private function updateBigData($url = 'https://scr34m.github.io/php-malware-scanner')
{
$url = 'http://127.0.0.1:4000';
$latest_hash = trim(file_get_contents($url . '/database/compressed.sha256'));
if ($latest_hash === false) {
$this->error('Unable to download database checksum');