mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Alert transport cleanup, no_proxy support and other proxy cleanups (#14763)
* Add no_proxy and other proxy related settings Set user agent on all http client requests Unify http client usage * Style fixes * Remove useless use statements * Correct variable, good job phpstan * Add tests fix https_proxy bug add tcp:// to the config settings format * style and lint fixes * Remove guzzle from the direct dependencies * Use built in Laravel testing functionality * update baseline
This commit is contained in:
@@ -54,6 +54,7 @@ use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use LibreNMS\Config;
|
||||
use LibreNMS\Data\Store\Rrd;
|
||||
use LibreNMS\Util\Http;
|
||||
use LibreNMS\Util\Version;
|
||||
|
||||
class AboutController extends Controller
|
||||
@@ -113,7 +114,7 @@ class AboutController extends Controller
|
||||
|
||||
// try to clear usage data if we have a uuid
|
||||
if ($usage_uuid) {
|
||||
if (! \Http::post(Config::get('callback_clear'), ['uuid' => $usage_uuid])->successful()) {
|
||||
if (! Http::client()->post(Config::get('callback_clear'), ['uuid' => $usage_uuid])->successful()) {
|
||||
return response()->json([], 500); // don't clear if this fails to delete upstream data
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user