0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-10-18 06:22:53 -04:00

Provide a more resilient and reliable searx instance

This commit is contained in:
Diogo Canut 2023-12-10 21:24:17 -03:00
parent 397a805ffd
commit 15b0505b96

View File

@ -52,11 +52,11 @@ impl SearchEngine for Searx {
let url: String = match page {
0 | 1 => {
format!("https://searx.work/search?q={query}&pageno=1&safesearch={safe_search}")
format!("https://searx.be/search?q={query}&pageno=1&safesearch={safe_search}")
}
_ => {
format!("https://searx.be/search?q={query}&pageno={page}&safesearch={safe_search}")
}
_ => format!(
"https://searx.work/search?q={query}&pageno={page}&safesearch={safe_search}"
),
};
// initializing headers and adding appropriate headers.