mirror of https://github.com/supernets/LibreY.git
feat(engines/google/text.php): remove random redirection because of privacy concerns
This commit is contained in:
parent
c592817c2b
commit
6a71de282c
|
@ -70,13 +70,6 @@
|
|||
do {
|
||||
curl_multi_exec($mh, $running);
|
||||
} while ($running);
|
||||
if (curl_getinfo($google_ch)['http_code'] == '302') {
|
||||
$instances_json = json_decode(file_get_contents("instances.json"), true);
|
||||
$instances = array_map(fn($n) => $n['clearnet'], array_filter($instances_json['instances'], fn($n) => !is_null($n['clearnet'])));
|
||||
header("Location: " . $instances[array_rand($instances)] . "search.php?q=$query");
|
||||
die();
|
||||
}
|
||||
|
||||
|
||||
if ($special_search != 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue