rotate ips on url resolution
This commit is contained in:
1 parent
d91834f86f
commit
9f0437d949
3 files changed
+4
-3
No files matched your search
+2
-2
@@ -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!
|
||||
|
||||
Reference in new issue
Block a user