Added 0.0.0.0 health checks url transformation
continuous-integration/drone/pr Build is passing

This commit is contained in:
Khwezi Mngoma
2026-06-03 11:23:13 +02:00
parent 961f03c1c7
commit b4a48c9cbf
+4 -2
View File
@@ -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";
}