Skip to content

Commit

Permalink
Ensure we're attemtping HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
IEvangelist committed Dec 17, 2024
1 parent b0a4fa6 commit b51302b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ProfanityFilter.WebApi/Components/Pages/Home.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ protected override async Task OnAfterRenderAsync(bool firstRender)

if (_hub is null)
{
var baseAddress = ServerAddresses.Addresses.FirstOrDefault();
var baseAddress = ServerAddresses.Addresses.FirstOrDefault(
a => a.StartsWith("https", StringComparison.OrdinalIgnoreCase));

Logger.LogInformation("Attempting hub base address: {Address}", baseAddress);

Expand Down

0 comments on commit b51302b

Please sign in to comment.