summaryrefslogtreecommitdiff
path: root/src/SMAPI/Program.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-06-05 21:38:24 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-06-05 21:38:24 -0400
commit570b19ca7a16dc6af901a8869f178a8196147fb0 (patch)
treeba8bdf421df0349087415d4a5ac6d0fface49b62 /src/SMAPI/Program.cs
parent172862db29db99dd6b7cbe9110c96df5086526d5 (diff)
downloadSMAPI-570b19ca7a16dc6af901a8869f178a8196147fb0.tar.gz
SMAPI-570b19ca7a16dc6af901a8869f178a8196147fb0.tar.bz2
SMAPI-570b19ca7a16dc6af901a8869f178a8196147fb0.zip
tweak client for reuse in toolkit (#532)
Diffstat (limited to 'src/SMAPI/Program.cs')
-rw-r--r--src/SMAPI/Program.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/SMAPI/Program.cs b/src/SMAPI/Program.cs
index e55a96b2..05a3134e 100644
--- a/src/SMAPI/Program.cs
+++ b/src/SMAPI/Program.cs
@@ -577,7 +577,11 @@ namespace StardewModdingAPI
new Thread(() =>
{
// create client
- WebApiClient client = new WebApiClient(this.Settings.WebApiBaseUrl, Constants.ApiVersionForToolkit);
+ string url = this.Settings.WebApiBaseUrl;
+#if !SMAPI_FOR_WINDOWS
+ url = url.Replace("https://", "http://"); // workaround for OpenSSL issues with the game's bundled Mono on Linux/Mac
+#endif
+ WebApiClient client = new WebApiClient(url, Constants.ApiVersionForToolkit);
this.Monitor.Log("Checking for updates...", LogLevel.Trace);
// check SMAPI version