mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
parent
a9841a9197
commit
2a6b122413
@ -9,6 +9,7 @@
|
||||
#include "icinga/macroprocessor.hpp"
|
||||
#include "icinga/icingaapplication.hpp"
|
||||
#include "icinga/checkcommand.hpp"
|
||||
#include "base/defer.hpp"
|
||||
#include "base/tcpsocket.hpp"
|
||||
#include "base/configtype.hpp"
|
||||
#include "base/objectlock.hpp"
|
||||
@ -447,6 +448,8 @@ void InfluxdbWriter::Flush()
|
||||
if (!stream)
|
||||
return;
|
||||
|
||||
Defer close ([&stream]() { stream->Close(); });
|
||||
|
||||
Url::Ptr url = new Url();
|
||||
url->SetScheme(GetSslEnable() ? "https" : "http");
|
||||
url->SetHost(GetHost());
|
||||
|
Loading…
x
Reference in New Issue
Block a user