diff --git a/client/Frontend/StartButtons.xaml b/client/Frontend/StartButtons.xaml
index 1b1d218..ead0e39 100644
--- a/client/Frontend/StartButtons.xaml
+++ b/client/Frontend/StartButtons.xaml
@@ -118,7 +118,7 @@
-
+
@@ -178,6 +178,23 @@
+
+
+
+
+
+
+
+
>();
TCPConnections = new List();
UDPEndpoints = new List>();
- HostsFile = "";
- HostsFileHash = "";
- await DebugLog.LogEventAsync("Networking redaction enabled. NICs, routes, hosts file, and network connections were skipped.", region);
+ await DebugLog.LogEventAsync("Networking redaction enabled. NICs, routes, and network connections were skipped.", region);
}
else
{
@@ -60,12 +58,21 @@ public static async Task MakeNetworkData()
AutoTuningLevelLocal = GetAutoTuningLevels();
- if (!Settings.RedactNetworking)
+ if (Settings.RedactHostsFile)
+ {
+ HostsFile = "[REDACTED]";
+ HostsFileHash = "[REDACTED]";
+ await DebugLog.LogEventAsync("Hosts file redaction enabled.", region);
+ }
+ else
{
HostsFile = GetHostsFile();
HostsFileHash = GetHostsFileHash();
await DebugLog.LogEventAsync("Hosts file retrieved.", region);
+ }
+ if (!Settings.RedactNetworking)
+ {
TCPConnections = GetTCPConnections();
UDPEndpoints = Utils.GetWmi("MSFT_NetUDPEndpoint", "LocalAddress,LocalPort,OwningProcess",
@"root\standardcimv2");