summaryrefslogtreecommitdiff
path: root/plugins/af_unburn
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-09-30 13:27:14 +0400
committerAndrew Dolgov <[email protected]>2013-09-30 13:27:14 +0400
commit05f14a7d19f217619e7d1220ac98f5788316dd2b (patch)
tree58dad93052c96f3220cfa37d912aabb2e12dda8a /plugins/af_unburn
parentd0ee0f52b720f731f57346747cb16b663aba0771 (diff)
add (undocumented) _CURL_HTTP_PROXY
Diffstat (limited to 'plugins/af_unburn')
-rw-r--r--plugins/af_unburn/init.php4
1 files changed, 4 insertions, 0 deletions
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);