public function setProxy ($proxy_url, $socks5 = false)
	{
		curl_setopt($this->ch, CURLOPT_PROXY, $proxy_url);

		//set proxy to use socks5
		if ($socks5)
		{
			curl_setopt($this->ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
		}
	}