aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/API/Hubs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-12-08 20:04:59 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-12-08 20:04:59 -0600
commit2d466b7b397ea22502893d2e053c74d2b91a6ef6 (patch)
tree95ae01edd1eff48151e5ba4f6d685b6dbc83ada1 /src/slskd/Core/API/Hubs
parentb18eacbf980a6d67462eb5aa65f70ed68dc6136e (diff)
downloadslskd-2d466b7b397ea22502893d2e053c74d2b91a6ef6.tar.gz
redact options
Diffstat (limited to 'src/slskd/Core/API/Hubs')
-rw-r--r--src/slskd/Core/API/Hubs/ApplicationHub.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Core/API/Hubs/ApplicationHub.cs b/src/slskd/Core/API/Hubs/ApplicationHub.cs
index d30b4a28..9861d0f9 100644
--- a/src/slskd/Core/API/Hubs/ApplicationHub.cs
+++ b/src/slskd/Core/API/Hubs/ApplicationHub.cs
@@ -53,7 +53,7 @@ namespace slskd.Core.API
/// <returns>The operation context.</returns>
public static Task BroadcastOptionsAsync(this IHubContext<ApplicationHub> hub, Options options)
{
- return hub.Clients.All.SendAsync(ApplicationHubMethods.Options, options);
+ return hub.Clients.All.SendAsync(ApplicationHubMethods.Options, options.Redact());
}
}
@@ -77,7 +77,7 @@ namespace slskd.Core.API
public override async Task OnConnectedAsync()
{
await Clients.Caller.SendAsync(ApplicationHubMethods.State, StateMonitor.CurrentValue);
- await Clients.Caller.SendAsync(ApplicationHubMethods.Options, OptionsMonitor.CurrentValue);
+ await Clients.Caller.SendAsync(ApplicationHubMethods.Options, OptionsMonitor.CurrentValue.Redact());
}
}
} \ No newline at end of file