Skip to content

Commit dc52fb1

Browse files
Merge pull request #864 from djoe47441/master
Report a Uri scheme of "amqps" in AmqpTcpEndpoint.ToString() iff SslOption is enabled (cherry picked from commit c93144a)
1 parent ccc7c33 commit dc52fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/RabbitMQ.Client/client/api/AmqpTcpEndpoint.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public override int GetHashCode()
281281
/// </remarks>
282282
public override string ToString()
283283
{
284-
return $"amqp://{HostName}:{Port}";
284+
return $"{(Ssl.Enabled ? "amqps" : "amqp")}://{HostName}:{Port}";
285285
}
286286
}
287287
}

0 commit comments

Comments
 (0)