Skip to content

Commit 34a1a43

Browse files
committed
fix(WSConnector): Do not change the endpoint to TLS 1.2 if explicitly set to TLS 1.0.
1 parent 3ccb263 commit 34a1a43

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Scripts/Connection/WSConnector.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,16 @@ public static string FixupURL(string URL)
213213
URL = URL.Replace("https://stream.", "wss://stream.");
214214
}
215215

216-
// TLS 1.0 endpoint
216+
// TLS 1.0 endpoint - Do not change this to TLS 1.2 endpoint since
217+
// users may need to use the TLS 1.0 endpoint because of different
218+
// platforms.
217219
else if (URL.StartsWith("http://stream-tls10."))
218220
{
219-
URL = URL.Replace("http://stream-tls10.", "ws://stream.");
221+
URL = URL.Replace("http://stream-tls10.", "ws://stream-tls10.");
220222
}
221223
else if (URL.StartsWith("https://stream-tls10."))
222224
{
223-
URL = URL.Replace("https://stream-tls10.", "wss://stream.");
225+
URL = URL.Replace("https://stream-tls10.", "wss://stream-tls10.");
224226
}
225227

226228
// Germany

0 commit comments

Comments
 (0)