We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b2cc25 commit 6a7ab51Copy full SHA for 6a7ab51
1 file changed
src/SkyApm.Abstractions/Config/GrpcConfig.cs
@@ -42,8 +42,9 @@ public static string[] GetServers(this GrpcConfig config)
42
var servers = config.Servers.Split(',').ToArray();
43
for (int i = 0; i < servers.Length; i++)
44
{
45
- if (!servers[i].StartsWith("http://", StringComparison.InvariantCultureIgnoreCase)
46
- && !servers[i].StartsWith("https://", StringComparison.InvariantCultureIgnoreCase))
+ // Support gRPC load balancing schemes like dns://, static:// etc.
+ // Only add http:// prefix if no scheme is specified (no :// present)
47
+ if (!servers[i].Contains("://"))
48
49
servers[i] = $"http://{servers[i]}";
50
}
0 commit comments