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 767e2d0 commit 40900aeCopy full SHA for 40900ae
1 file changed
src/Foundatio.RabbitMQ/Messaging/RabbitMQMessageBus.cs
@@ -862,6 +862,10 @@ private static string SanitizeUri(Uri uri)
862
if (colonIndex < 0)
863
return new AmqpTcpEndpoint(trimmed, defaultPort);
864
865
+ // Multiple colons without brackets indicates an unbracketed IPv6 address — treat as bare hostname
866
+ if (trimmed.IndexOf(':') != colonIndex)
867
+ return new AmqpTcpEndpoint(trimmed, defaultPort);
868
+
869
string hostname = trimmed[..colonIndex];
870
return Int32.TryParse(trimmed[(colonIndex + 1)..], out int parsedPort)
871
? new AmqpTcpEndpoint(hostname, parsedPort)
0 commit comments