change the configuration to handle the new ZMQ-REQ-REP-protocol and the RestAPI-Update protocol
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user