Index: binaries/data/config/default.cfg =================================================================== --- binaries/data/config/default.cfg +++ binaries/data/config/default.cfg @@ -474,7 +474,7 @@ debug = false ; Print error messages each time a translation for an English string is not found. [userreport] ; Opt-in online user reporting system -url = "http://feedback.wildfiregames.com/report/upload/v1/" +url = "https://feedback.wildfiregames.com/report/upload/" [view] ; Camera control settings scroll.speed = 120.0 Index: source/ps/ModIo.cpp =================================================================== --- source/ps/ModIo.cpp +++ source/ps/ModIo.cpp @@ -208,6 +208,9 @@ curl_easy_setopt(m_Curl, CURLOPT_WRITEDATA, this); } + // Requires use of SSL, else conneciton fails. + curl_easy_setopt(m_Curl, CURLOPT_USE_SSL, CURLUSESSL_ALL); + m_ErrorBuffer[0] = '\0'; curl_easy_setopt(m_Curl, CURLOPT_URL, url.c_str()); return curl_multi_add_handle(m_CurlMulti, m_Curl); Index: source/ps/UserReport.cpp =================================================================== --- source/ps/UserReport.cpp +++ source/ps/UserReport.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2016 Wildfire Games. +/* Copyright (C) 2018 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -94,6 +94,8 @@ #if DEBUG_UPLOADS curl_easy_setopt(m_Curl, CURLOPT_VERBOSE, 1L); + // Allows to use self-signed certificates. + curl_easy_setopt(m_Curl, CURLOPT_SSL_VERIFYPEER, 0L); #endif // Capture error messages @@ -115,6 +117,9 @@ curl_easy_setopt(m_Curl, CURLOPT_URL, url.c_str()); curl_easy_setopt(m_Curl, CURLOPT_POST, 1L); + // Requires use of SSL, else conneciton fails. + curl_easy_setopt(m_Curl, CURLOPT_USE_SSL, CURLUSESSL_ALL); + // Set up HTTP headers m_Headers = NULL; // Set the UA string @@ -548,7 +553,7 @@ { int version = -1; CFG_GET_VAL("userreport.enabledversion", version); - return (version >= REPORTER_VERSION); + return version >= REPORTER_VERSION; } void CUserReporter::SetReportingEnabled(bool enabled)