Skip to content

Commit

Permalink
Adding a small fix to the commandline in the summary as it persisted …
Browse files Browse the repository at this point in the history
…to using the .dll full path rather than wyc.exe. For now it's statically added.
  • Loading branch information
H4NM committed Jan 6, 2025
1 parent d5ea74b commit 1e8d78d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions WhoYouCalling/Summary/RuntimeSummary.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using PacketDotNet;
using WhoYouCalling.Network;
using WhoYouCalling.Network;
using WhoYouCalling.Network.DNS;
using WhoYouCalling.Process;
using WhoYouCalling.Utilities;

namespace WhoYouCalling.Summary
{
Expand Down Expand Up @@ -56,10 +54,10 @@ public RuntimeSummary(List<MonitoredProcess> monitoredProcesses, DateTime startT
MostCommonConnections = GetFiveMostCommonConnections(destinationPortsAndProtocol, maxNumberOfPorts: 5);
NumberOfUniqueDomainsQueried = uniqueDomains.Count;
}

private static string GetFullWYCCommandLine()
{
return Environment.CommandLine;
string[] commandLineArgs = Environment.GetCommandLineArgs();
return $"wyc.exe {string.Join(" ", commandLineArgs, 1, commandLineArgs.Length - 1)}";
}
private static string GetTLDText(HashSet<string> uniqueDomains)
{
Expand Down

0 comments on commit 1e8d78d

Please sign in to comment.