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 d54b043 commit 5987d3bCopy full SHA for 5987d3b
src/BenchmarksApps/TLS/Kestrel/Program.cs
@@ -1,6 +1,7 @@
1
using System.Diagnostics;
2
using System.Net;
3
using System.Net.Security;
4
+using System.Runtime.InteropServices;
5
using System.Security.Authentication;
6
using System.Security.Cryptography.X509Certificates;
7
using Microsoft.AspNetCore.Authentication.Certificate;
@@ -227,6 +228,11 @@ static IPEndPoint CreateIPEndPoint(UrlPrefix urlPrefix)
227
228
229
static void LogOpenSSLVersion()
230
{
231
+ if (!(OperatingSystem.IsLinux() || OperatingSystem.IsMacOS()))
232
+ {
233
+ return;
234
+ }
235
+
236
using var process = new Process()
237
238
StartInfo =
0 commit comments