diff options
author | claiff <claiff@mail.ru> | 2022-09-19 22:48:35 +0300 |
---|---|---|
committer | claiff <claiff@mail.ru> | 2022-09-19 22:48:35 +0300 |
commit | 629929ebbe386277c25740bc0f4971aac38444d0 (patch) | |
tree | 9ce2a828bfb4399b09e902cd70298f0963867269 /src/converter/file.cpp | |
parent | 7e156f58e74baaf4f1d7ccb4df629e6e1a26a32e (diff) | |
parent | 011e19815b201acf19b5a4208ec6acd41ca995f3 (diff) | |
download | obmc-sila-smtp-629929ebbe386277c25740bc0f4971aac38444d0.tar.xz |
Merge branch 'bugfix/boolean_settings'
Diffstat (limited to 'src/converter/file.cpp')
-rw-r--r-- | src/converter/file.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/converter/file.cpp b/src/converter/file.cpp index 203cca9..a33381f 100644 --- a/src/converter/file.cpp +++ b/src/converter/file.cpp @@ -18,14 +18,14 @@ namespace smtp::converter void File::ApplyAuth( manage::SettingsFields &result, manage::SettingsFileDataType const& from ) const { - static const std::string FIELD = "need_auth"; + static const std::string FIELD = "is_need_auth"; ApplyBool(from, FIELD, result.is_need_auth); } void File::ApplySsl( manage::SettingsFields &result, manage::SettingsFileDataType const& from ) const { - static const std::string FIELD = "need_ssl"; + static const std::string FIELD = "is_need_ssl"; ApplyBool(from, FIELD, result.is_need_ssl); } @@ -44,7 +44,7 @@ namespace smtp::converter { return; } - field = ( find->second == TRUE_AS_STRING ) ? true : false; + field = (find->second == TRUE_AS_STRING); } void File::ApplyUsername( manage::SettingsFields &result, manage::SettingsFileDataType const& from ) const |