mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-12-25 06:18:30 +00:00
Wrapped the main evaluation logic in Program.cs with a try-catch block to provide clearer error messages on failure. Updated Tls12OfflineInspector to use Path.Combine for system DLL path construction, improving cross-platform compatibility and code clarity.
27 lines
680 B
C#
27 lines
680 B
C#
using System;
|
|
|
|
namespace Catswords.TlsReport
|
|
{
|
|
internal class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
Console.WriteLine("Catswords TLS 1.2 Offline Inspector");
|
|
Console.WriteLine("https://catswords.com");
|
|
Console.WriteLine();
|
|
|
|
try
|
|
{
|
|
var report = Tls12OfflineInspector.Evaluate();
|
|
Console.WriteLine(report.ToText());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
Console.Error.WriteLine("Inspector failed: " + ex.GetType().Name + ": " + ex.Message);
|
|
}
|
|
|
|
Console.WriteLine();
|
|
}
|
|
}
|
|
}
|