Merge pull request 'Added 0.0.0.0 health checks url transformation' (#66) from payments into master

Reviewed-on: #66
This commit was merged in pull request #66.
This commit is contained in:
2026-06-03 11:24:02 +02:00
+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";
}