rotate ips on url resolution

This commit is contained in:
lolcat committed 2026-10-30 00:18:06 -04:00
1 parent d91834f86f
commit 9f0437d949
3 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -12,9 +12,9 @@ class backend{
/*
Proxy stuff
*/
public function get_ip($proxy_index_raw = null){
public function get_ip($proxy_index_raw = null, $use_alt_list = false){
$pool = constant("config::PROXY_" . strtoupper($this->scraper));
$pool = constant("config::PROXY_" . strtoupper($this->scraper) . ($use_alt_list ? "_ALT" : ""));
if($pool === false){
// we don't want a proxy, fuck off!