Permalink
Browse files

finally fix #828: allow connect to servers with unknown cert

  • Loading branch information...
abma committed Sep 9, 2018
1 parent a85462b commit 6893a2fbb753f5a92998b23d99a2f0e04581b4fa
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/settings.cpp
@@ -290,7 +290,9 @@ void Settings::SetServer(const wxString& server_name, const wxString& url, int p
cfg().Write(_T( "/Server/Servers/" ) + server_name + _T( "/Host" ), url);
cfg().Write(_T( "/Server/Servers/" ) + server_name + _T( "/Port" ), port);
cfg().Write(_T( "/Server/Servers/" ) + server_name + _T( "/TLS" ), true);
cfg().Write(_T( "/Server/Servers/" ) + server_name + _T( "/Certificate" ), fingerprint);
if (!fingerprint.empty()) {
cfg().Write(_T( "/Server/Servers/" ) + server_name + _T( "/Certificate" ), fingerprint);
}
}

//! @brief Deletes a server from the list.

0 comments on commit 6893a2f

Please sign in to comment.