aboutsummaryrefslogtreecommitdiffstats
path: root/urpmi-proxy.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'urpmi-proxy.cgi')
-rwxr-xr-xurpmi-proxy.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpmi-proxy.cgi b/urpmi-proxy.cgi
index f439100..38c57ba 100755
--- a/urpmi-proxy.cgi
+++ b/urpmi-proxy.cgi
@@ -6,6 +6,7 @@ use strict;
use warnings;
my $debug = 0;
+my $proxy = 0;
my $config_file = '/etc/urpmi-proxy.conf';
# config defaults
@@ -293,6 +294,7 @@ foreach my $source (@sources) {
$curl->setopt(CURLOPT_TIMEVALUE, $modified_since);
}
$curl->setopt(CURLOPT_USERAGENT, $user_agent) if $user_agent;
+ $curl->setopt(CURLOPT_PROXY, $proxy) if $proxy;
$curl->setopt(CURLOPT_CONNECTTIMEOUT, $connect_timeout);
$curl->setopt(CURLOPT_FTP_RESPONSE_TIMEOUT, $ftp_response_timeout);
$curl->setopt(CURLOPT_LOW_SPEED_LIMIT, $max_stall_speed);