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

account: add allow ip auto rewrite flag into config

Change-Id: I4c1f1ea7ed35d2645c13d3ca798bffa27d7b5696
parent dbbc87ef
No related branches found
No related tags found
No related merge requests found
......@@ -102,6 +102,7 @@ struct ConfProperties_t
bool upnpEnabled;
bool hasCustomUserAgent;
bool allowIncoming;
bool allowIPAutoRewrite;
QString archivePassword;
bool archiveHasPassword;
QString archivePath;
......
......@@ -837,6 +837,7 @@ account::Info::fromDetails(const MapStringString& details)
confProperties.allowIncoming = toBool(details[ConfProperties::ALLOW_CERT_FROM_HISTORY])
| toBool(details[ConfProperties::ALLOW_CERT_FROM_CONTACT])
| toBool(details[ConfProperties::ALLOW_CERT_FROM_TRUSTED]);
confProperties.allowIPAutoRewrite = toBool(details[ConfProperties::ACCOUNT_IP_AUTO_REWRITE]);
confProperties.archivePassword = details[ConfProperties::ARCHIVE_PASSWORD];
confProperties.archiveHasPassword = toBool(details[ConfProperties::ARCHIVE_HAS_PASSWORD]);
confProperties.archivePath = details[ConfProperties::ARCHIVE_PATH];
......@@ -954,6 +955,7 @@ account::ConfProperties_t::toDetails() const
details[ConfProperties::ALLOW_CERT_FROM_HISTORY] = toQString(this->allowIncoming);
details[ConfProperties::ALLOW_CERT_FROM_CONTACT] = toQString(this->allowIncoming);
details[ConfProperties::ALLOW_CERT_FROM_TRUSTED] = toQString(this->allowIncoming);
details[ConfProperties::ACCOUNT_IP_AUTO_REWRITE] = toQString(this->allowIPAutoRewrite);
details[ConfProperties::ARCHIVE_PASSWORD] = this->archivePassword;
details[ConfProperties::ARCHIVE_HAS_PASSWORD] = toQString(this->archiveHasPassword);
details[ConfProperties::ARCHIVE_PATH] = this->archivePath;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment