Try to remember which language I'm coding in...

This commit is contained in:
Paul Gear
2015-04-13 19:45:41 +10:00
parent 93eab16e5a
commit 2cbe6ea464

View File

@@ -19,10 +19,10 @@ function set_proxy($post)
$tmp = rtrim($_ENV['https_proxy'], "/");
$proxystr = str_replace(array("http://", "https://"), "", $tmp);
$config['callback_proxy'] = $proxystr;
printf("Setting proxy to %s (from https_proxy=%s)\n", $proxystr, $_ENV['https_proxy']);
echo "Setting proxy to ".$proxystr." (from https_proxy=".$_ENV['https_proxy'].")\n";
}
if (isset($config['callback_proxy'])) {
printf("Using %s as proxy\n", $config['callback_proxy']);
echo "Using ".$config['callback_proxy']." as proxy\n";
curl_setopt($post, CURLOPT_PROXY, $config['callback_proxy']);
}
}