config: add peerDiscovery parameter

Change-Id: I45666f799571a5945f61e8a786ff255825ef5e4a
parent db9e524a
......@@ -121,6 +121,7 @@ struct ConfProperties_t {
bool proxyEnabled;
std::string proxyServer;
std::string proxyPushToken;
bool peerDiscovery;
int registrationExpire;
struct Audio_t {
int audioPortMax;
......
......@@ -671,6 +671,7 @@ account::Info::fromDetails(const MapStringString& details)
confProperties.proxyEnabled = toBool(details[ConfProperties::PROXY_ENABLED]);
confProperties.proxyServer = toStdString(details[ConfProperties::PROXY_SERVER]);
confProperties.proxyPushToken = toStdString(details[ConfProperties::PROXY_PUSH_TOKEN]);
confProperties.peerDiscovery = toBool(details[ConfProperties::DHT_PEER_DISCOVERY]);
// Audio
confProperties.Audio.audioPortMax = toInt(details[ConfProperties::Audio::PORT_MAX]);
confProperties.Audio.audioPortMin = toInt(details[ConfProperties::Audio::PORT_MIN]);
......@@ -768,6 +769,7 @@ account::ConfProperties_t::toDetails() const
details[ConfProperties::PROXY_ENABLED] = toQString(this->proxyEnabled);
details[ConfProperties::PROXY_SERVER] = toQString(this->proxyServer);
details[ConfProperties::PROXY_PUSH_TOKEN] = toQString(this->proxyPushToken);
details[ConfProperties::DHT_PEER_DISCOVERY] = toQString(this->peerDiscovery);
// Audio
details[ConfProperties::Audio::PORT_MAX] = toQString(this->Audio.audioPortMax);
details[ConfProperties::Audio::PORT_MIN] = toQString(this->Audio.audioPortMin);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment