Skip to content
Snippets Groups Projects
Unverified Commit 6185a10e authored by Sébastien Blin's avatar Sébastien Blin
Browse files

config: add peerDiscovery parameter

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