We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34a1a43 commit 93b56ebCopy full SHA for 93b56eb
Scripts/Connection/WSConnector.cs
@@ -414,8 +414,10 @@ private void SendMessages()
414
ws.OnClose += OnWSClose;
415
ws.OnError += OnWSError;
416
ws.OnMessage += OnWSMessage;
417
-#if UNITY_2018_2_OR_NEWER
+#if NET_4_6
418
ws.SslConfiguration.EnabledSslProtocols = SslProtocols.Tls12 | SslProtocols.Tls11 | SslProtocols.Tls;
419
+#else
420
+ ws.SslConfiguration.EnabledSslProtocols = SslProtocols.Tls;
421
#endif
422
ws.Connect();
423
0 commit comments