From b4a48c9cbffd63804d347544636d0a6b0c3196e6 Mon Sep 17 00:00:00 2001 From: Khwezi Mngoma Date: Wed, 3 Jun 2026 11:23:13 +0200 Subject: [PATCH] Added 0.0.0.0 health checks url transformation --- LiteCharms.Features/Extensions/Api.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/LiteCharms.Features/Extensions/Api.cs b/LiteCharms.Features/Extensions/Api.cs index df8fe23..ef50663 100644 --- a/LiteCharms.Features/Extensions/Api.cs +++ b/LiteCharms.Features/Extensions/Api.cs @@ -69,8 +69,10 @@ public static class Api if (!string.IsNullOrWhiteSpace(urls)) { - string firstUrl = urls.Split(';').FirstOrDefault(s => s.Contains("http://"))! - .Replace("*", "localhost").Replace("+", "localhost"); + string firstUrl = urls.Split(';').FirstOrDefault(s => s.Contains("http://"))! + .Replace("0.0.0.0", "localhost") + .Replace("*", "localhost") + .Replace("+", "localhost"); healthUrl = $"{firstUrl.TrimEnd('/')}/health"; }