start SSL

This commit is contained in:
John
2022-02-07 22:34:43 +01:00
parent 0135dc9100
commit e3dfe32350
11 changed files with 339 additions and 36 deletions
+7 -1
View File
@@ -332,7 +332,13 @@ void MainLoop::run() {
}
if (m_runUpdateCheck && !m_shutdown && now > nextCheckRun) {
HttpClient client;
if (!client.connect("upd.ebusd.eu", 80, PACKAGE_NAME "/" PACKAGE_VERSION)) {
if (!client.connect("upd.ebusd.eu",
#ifdef HAVE_SSL
443, true,
#else
80, false,
#endif
PACKAGE_NAME "/" PACKAGE_VERSION)) {
logError(lf_main, "update check connect error");
} else {
ostringstream ostr;