diff --git a/src/api/account.h b/src/api/account.h
index 59deb66182678b73c722d7eb826ce1fff94836ed..bc90f21d1550b225c58932772d1841de1676622e 100644
--- a/src/api/account.h
+++ b/src/api/account.h
@@ -102,6 +102,7 @@ struct ConfProperties_t
     bool upnpEnabled;
     bool hasCustomUserAgent;
     bool allowIncoming;
+    bool allowIPAutoRewrite;
     QString archivePassword;
     bool archiveHasPassword;
     QString archivePath;
diff --git a/src/newaccountmodel.cpp b/src/newaccountmodel.cpp
index 3b1b67ed7e899fae6d20ffa76f6177d33921cc26..781497f2a6845175852c2bb3c6c9a35efd77f9b2 100644
--- a/src/newaccountmodel.cpp
+++ b/src/newaccountmodel.cpp
@@ -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;