Skip to content

Commit c93144a

Browse files
Merge pull request #864 from djoe47441/master
Report a Uri scheme of "amqps" in AmqpTcpEndpoint.ToString() iff SslOption is enabled
2 parents 04bca53 + 83a0d18 commit c93144a

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)