Zentrales PW

This commit is contained in:
2026-04-14 10:05:59 +02:00
parent cf20bd94d0
commit df90a4a172
7 changed files with 235 additions and 2 deletions
+4 -1
View File
@@ -97,7 +97,10 @@ public class HanaServer
if (string.IsNullOrWhiteSpace(value))
return string.Empty;
if (Uri.TryCreate(value, UriKind.Absolute, out var uri))
// Treat plain "host:port" values as HANA ServerNode, not as a URI scheme.
// Only parse as URI when an explicit scheme is present.
if (value.Contains("://", StringComparison.Ordinal) &&
Uri.TryCreate(value, UriKind.Absolute, out var uri))
{
return uri.IsDefaultPort ? uri.Host : $"{uri.Host}:{uri.Port}";
}