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
+3 -1
View File
@@ -70,7 +70,9 @@ public static class Api
if (!string.IsNullOrWhiteSpace(urls)) if (!string.IsNullOrWhiteSpace(urls))
{ {
string firstUrl = urls.Split(';').FirstOrDefault(s => s.Contains("http://"))! string firstUrl = urls.Split(';').FirstOrDefault(s => s.Contains("http://"))!
.Replace("*", "localhost").Replace("+", "localhost"); .Replace("0.0.0.0", "localhost")
.Replace("*", "localhost")
.Replace("+", "localhost");
healthUrl = $"{firstUrl.TrimEnd('/')}/health"; healthUrl = $"{firstUrl.TrimEnd('/')}/health";
} }