mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@@ -61,13 +61,13 @@ class Proxy
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the proxy url in guzzle format "tcp://127.0.0.1:8888"
|
||||
* Return the proxy url in guzzle format "http://127.0.0.1:8888"
|
||||
*/
|
||||
public static function forGuzzle(): string
|
||||
{
|
||||
$proxy = self::forCurl();
|
||||
|
||||
return empty($proxy) ? '' : ('tcp://' . $proxy);
|
||||
return empty($proxy) ? '' : ('http://' . $proxy);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user