Skip to content

Commit

Permalink
fix wss
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed May 1, 2024
1 parent fc073e5 commit acd3b34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NewLife.Core/Net/NetHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,8 @@ public static ISocketClient CreateRemote(this Uri uri)
{
return uri.Scheme switch
{
"ws" => new WebSocketClient(uri) { SslProtocol = SslProtocols.Tls12 },
"wss" => new WebSocketClient(uri),
"wss" => new WebSocketClient(uri) { SslProtocol = SslProtocols.Tls12 },
"ws" => new WebSocketClient(uri),
_ => throw new NotSupportedException($"The {uri.Scheme} protocol is not supported"),
};
}
Expand Down

0 comments on commit acd3b34

Please sign in to comment.