From 484b5ea094f7baff15ff68a94ba1bae6de07db89 Mon Sep 17 00:00:00 2001 From: Pavel Date: Sat, 1 Aug 2015 17:17:31 +0300 Subject: [PATCH] Update AngryCurl.class.php --- classes/AngryCurl.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/AngryCurl.class.php b/classes/AngryCurl.class.php index fa69e01..87a33f8 100644 --- a/classes/AngryCurl.class.php +++ b/classes/AngryCurl.class.php @@ -126,7 +126,7 @@ public function request($url, $method = "GET", $post_data = null, $headers = nul { if($this->n_proxy > 0 && $this->use_proxy_list) { - $options[CURLOPT_PROXY]=$this->array_proxy[ mt_rand(0, $this->n_proxy-1) ]; + $options[CURLOPT_PROXY]=empty($options[CURLOPT_PROXY]) ? $this->array_proxy[ mt_rand(0, $this->n_proxy-1) ] : $options[CURLOPT_PROXY]; // self::add_debug_msg("Using PROXY({$this->n_proxy}): ".$options[CURLOPT_PROXY]); } elseif($this->n_proxy < 1 && $this->use_proxy_list)