File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public Task StartAsync(CancellationToken cancellationToken)
52
52
var tlsServerConfig = configuration . GetSection ( "server:tak:tls" ) . Get < TakServerConfig > ( ) ;
53
53
if ( tlsServerConfig is not null && tlsServerConfig . Enabled )
54
54
{
55
- var sslContext = new SslContext ( SslProtocols . Tls , new X509Certificate (
55
+ var sslContext = new SslContext ( SslProtocols . Tls12 , new X509Certificate (
56
56
tlsServerConfig . Cert ,
57
57
tlsServerConfig . Passphrase )
58
58
) ;
@@ -76,7 +76,7 @@ public Task StartAsync(CancellationToken cancellationToken)
76
76
var port = websocketConfig . Port ?? 5500 ;
77
77
if ( websocketConfig . Ssl )
78
78
{
79
- var sslContext = new SslContext ( SslProtocols . Tls , new X509Certificate (
79
+ var sslContext = new SslContext ( SslProtocols . Tls12 , new X509Certificate (
80
80
websocketConfig . Cert ,
81
81
websocketConfig . Passphrase )
82
82
) ;
Original file line number Diff line number Diff line change 73
73
}
74
74
75
75
function Connect () {
76
- var proto = window .location .protocol == " https" ? " wss" : " ws" ;
76
+ var proto = window .location .protocol == " https: " ? " wss" : " ws" ;
77
77
var wsEndpoint = ` ${ proto} ://${ window .location .hostname } :@ViewData["ws-port"]` ;
78
78
var ws = new WebSocket (wsEndpoint);
79
79
You can’t perform that action at this time.
0 commit comments