File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
UnityWebSocket/Assets/Scripts/Plugins/UnityWebSocket Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1- using System ;
1+ using System ;
22using System . Collections . Generic ;
33using System . Linq ;
44using System . Text ;
@@ -197,7 +197,10 @@ public WebSocket(string address)
197197 onMessage ( this , new MessageEventArgs ( ( Opcode ) e . Opcode , e . RawData ) ) ;
198198 } ;
199199
200- m_rawSocket . SslConfiguration . EnabledSslProtocols = ( System . Security . Authentication . SslProtocols ) ( ( int ) m_rawSocket . SslConfiguration . EnabledSslProtocols | 192 | 768 | 3072 ) ;
200+ if ( m_rawSocket . IsSecure )
201+ {
202+ m_rawSocket . SslConfiguration . EnabledSslProtocols = ( System . Security . Authentication . SslProtocols ) ( ( int ) m_rawSocket . SslConfiguration . EnabledSslProtocols | 192 | 768 | 3072 ) ;
203+ }
201204 }
202205
203206 /// <summary>
You can’t perform that action at this time.
0 commit comments