diff --git a/src/api/account.h b/src/api/account.h
index b237646a591217f193eabb8dcb7c696869c56b21..45e19bda253d6753afbb3dcdbe5743be9b617e83 100644
--- a/src/api/account.h
+++ b/src/api/account.h
@@ -121,6 +121,7 @@ struct ConfProperties_t {
     bool                    proxyEnabled;
     std::string             proxyServer;
     std::string             proxyPushToken;
+    bool                    peerDiscovery;
     int                     registrationExpire;
     struct Audio_t {
         int                 audioPortMax;
diff --git a/src/newaccountmodel.cpp b/src/newaccountmodel.cpp
index cbc207c9bd4a85726b6492d3bea026a1f238b3d1..c12703f56dbcfad1ea621f3060b73a2e4b1f75eb 100644
--- a/src/newaccountmodel.cpp
+++ b/src/newaccountmodel.cpp
@@ -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);