mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Load config for new get_proxy function (#6247)
This commit is contained in:
@@ -1280,8 +1280,6 @@ function guidv4($data)
|
||||
*/
|
||||
function set_curl_proxy($curl)
|
||||
{
|
||||
global $config;
|
||||
|
||||
$proxy = get_proxy();
|
||||
|
||||
$tmp = rtrim($proxy, "/");
|
||||
@@ -1298,6 +1296,8 @@ function set_curl_proxy($curl)
|
||||
*/
|
||||
function get_proxy()
|
||||
{
|
||||
global $config;
|
||||
|
||||
if (getenv('http_proxy')) {
|
||||
return getenv('http_proxy');
|
||||
} elseif (getenv('https_proxy')) {
|
||||
|
||||
Reference in New Issue
Block a user