diff options
author | Ermal <eri@pfsense.org> | 2011-05-20 15:45:01 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-05-20 15:45:01 +0000 |
commit | 2a57a4d1c12874813e7162eb293ea36babd97267 (patch) | |
tree | 672778ca377c2387034e41b9fa5c44c40d0ca64c /etc | |
parent | b7d56b6412280d9dde10af0175dcc84eb75a85f2 (diff) | |
download | pfsense-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
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 |
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']}"); } } |