Skip to content
Snippets Groups Projects
Commit b5a545dc authored by Ming Rui Zhang's avatar Ming Rui Zhang Committed by Sébastien Blin
Browse files

config: add local account peerdiscovery parameters

Change-Id: I7277fa61af30c918c67dad59b5d6ed003039670c
parent 76fceef7
No related branches found
No related tags found
No related merge requests found
...@@ -123,6 +123,8 @@ struct ConfProperties_t { ...@@ -123,6 +123,8 @@ struct ConfProperties_t {
std::string proxyServer; std::string proxyServer;
std::string proxyPushToken; std::string proxyPushToken;
bool peerDiscovery; bool peerDiscovery;
bool accountDiscovery;
bool accountPublish;
int registrationExpire; int registrationExpire;
struct Audio_t { struct Audio_t {
int audioPortMax; int audioPortMax;
......
...@@ -674,6 +674,8 @@ account::Info::fromDetails(const MapStringString& details) ...@@ -674,6 +674,8 @@ account::Info::fromDetails(const MapStringString& details)
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]); confProperties.peerDiscovery = toBool(details[ConfProperties::DHT_PEER_DISCOVERY]);
confProperties.accountDiscovery = toBool(details[ConfProperties::ACCOUNT_PEER_DISCOVERY]);
confProperties.accountPublish = toBool(details[ConfProperties::ACCOUNT_PUBLISH]);
// 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]);
...@@ -772,6 +774,8 @@ account::ConfProperties_t::toDetails() const ...@@ -772,6 +774,8 @@ account::ConfProperties_t::toDetails() const
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); details[ConfProperties::DHT_PEER_DISCOVERY] = toQString(this->peerDiscovery);
details[ConfProperties::ACCOUNT_PEER_DISCOVERY] = toQString(this->accountDiscovery);
details[ConfProperties::ACCOUNT_PUBLISH] = toQString(this->accountPublish);
// 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