summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-05-20 15:45:01 +0000
committerErmal <eri@pfsense.org>2011-05-20 15:45:01 +0000
commit2a57a4d1c12874813e7162eb293ea36babd97267 (patch)
tree672778ca377c2387034e41b9fa5c44c40d0ca64c
parentb7d56b6412280d9dde10af0175dcc84eb75a85f2 (diff)
downloadpfsense-2a57a4d1c12874813e7162eb293ea36babd97267.zip
pfsense-2a57a4d1c12874813e7162eb293ea36babd97267.tar.gz
Correct curl setting for setting a proxy username and password. Reported-by: http://forum.pfsense.org/index.php/topic,36939.0.html
-rw-r--r--etc/inc/pfsense-utils.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 47015af..81964b3 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1471,7 +1471,7 @@ function download_file_with_progress_bar($url_file, $destination_file, $readbody
curl_setopt($ch, CURLOPT_PROXYPORT, $config['system']['proxyport']);
if (!empty($config['system']['proxyuser']) && !empty($config['system']['proxypass'])) {
@curl_setopt($ch, CURLOPT_PROXYAUTH, CURLAUTH_ANY | CURLAUTH_ANYSAFE);
- curl_setopt($ch, CURLOPT_PROXYUSERPASS, "{$config['system']['proxyuser']}:{$config['system']['proxypass']}");
+ curl_setopt($ch, CURLOPT_PROXYUSERPWD, "{$config['system']['proxyuser']}:{$config['system']['proxypass']}");
}
}
OpenPOWER on IntegriCloud