change the configuration to handle the new ZMQ-REQ-REP-protocol and the RestAPI-Update protocol

This commit is contained in:
Sven Czarnian
2021-11-21 08:53:58 +01:00
parent 0acb45dd27
commit b309e86ec6
4 changed files with 27 additions and 10 deletions

View File

@@ -95,7 +95,19 @@ PlugIn::~PlugIn() noexcept {
}
void PlugIn::validateBackendData() {
std::string url = "http://" + this->m_configuration.address + ":5000/aman/airports";
if (false == this->m_configuration.valid) {
this->m_compatible = false;
return;
}
/* set up the URL */
std::string url;
if (true == this->m_configuration.httpsProtocol)
url += "https://";
else
url += "http://";
url += this->m_configuration.address + ":" + std::to_string(this->m_configuration.portRestAPI) + "/aman/airports";
CURL* curl = curl_easy_init();
CURLcode result;