Skip to content

Commit cc9e3af

Browse files
authored
Use http for compiler download
1 parent edf88b4 commit cc9e3af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PluginCompiler.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ private static void DownloadCompiler(string remoteHash)
130130
try
131131
{
132132
Interface.Oxide.LogInfo($"Downloading {FileName} for .cs (C#) plugin compilation");
133-
HttpWebRequest request = (HttpWebRequest)WebRequest.Create($"https://umod.cloud/compiler/{FileName}");
133+
HttpWebRequest request = (HttpWebRequest)WebRequest.Create($"http://umod.cloud/compiler/{FileName}");
134134
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
135135
int statusCode = (int)response.StatusCode;
136136
if (statusCode != 200)
@@ -159,7 +159,7 @@ private static void DownloadCompiler(string remoteHash)
159159

160160
if (downloadRetries >= 2)
161161
{
162-
Interface.Oxide.LogInfo($"Couldn not download {FileName}! Please download manually from: https://umod.cloud/compiler/{FileName}");
162+
Interface.Oxide.LogInfo($"Couldn not download {FileName}! Please download manually from: http://umod.cloud/compiler/{FileName}");
163163
return;
164164
}
165165

@@ -176,7 +176,7 @@ private static void DownloadCompiler(string remoteHash)
176176
}
177177
catch (Exception ex)
178178
{
179-
Interface.Oxide.LogError($"Could not download {FileName}! Please download manually from: https://umod.cloud/compiler/{FileName}");
179+
Interface.Oxide.LogError($"Could not download {FileName}! Please download manually from: http://umod.cloud/compiler/{FileName}");
180180
Interface.Oxide.LogError(ex.Message);
181181
}
182182
}
@@ -186,7 +186,7 @@ private static void UpdateCheck()
186186
try
187187
{
188188
string filePath = Path.Combine(Interface.Oxide.RootDirectory, FileName);
189-
HttpWebRequest request = (HttpWebRequest)WebRequest.Create($"https://umod.cloud/compiler/{FileName}.md5");
189+
HttpWebRequest request = (HttpWebRequest)WebRequest.Create($"http://umod.cloud/compiler/{FileName}.md5");
190190
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
191191
int statusCode = (int)response.StatusCode;
192192
if (statusCode != 200)

0 commit comments

Comments
 (0)