From 05f14a7d19f217619e7d1220ac98f5788316dd2b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 30 Sep 2013 13:27:14 +0400 Subject: add (undocumented) _CURL_HTTP_PROXY --- plugins/af_unburn/init.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins') diff --git a/plugins/af_unburn/init.php b/plugins/af_unburn/init.php index a97502b12..5873ccdf7 100644 --- a/plugins/af_unburn/init.php +++ b/plugins/af_unburn/init.php @@ -38,6 +38,10 @@ class Af_Unburn extends Plugin { curl_setopt($ch, CURLOPT_FOLLOWLOCATION, !ini_get("safe_mode") && !ini_get("open_basedir")); curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT); + if (defined('_CURL_HTTP_PROXY')) { + curl_setopt($ch, CURLOPT_PROXY, _CURL_HTTP_PROXY); + } + $contents = @curl_exec($ch); $real_url = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL); -- cgit v1.2.3-54-g00ecf