Skip to content

Commit

Permalink
Merge pull request #864 from djoe47441/master
Browse files Browse the repository at this point in the history
Report a Uri scheme of "amqps" in AmqpTcpEndpoint.ToString() iff SslOption is enabled

(cherry picked from commit c93144a)
  • Loading branch information
michaelklishin committed Jun 15, 2020
1 parent ccc7c33 commit dc52fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/RabbitMQ.Client/client/api/AmqpTcpEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public override int GetHashCode()
/// </remarks>
public override string ToString()
{
return $"amqp://{HostName}:{Port}";
return $"{(Ssl.Enabled ? "amqps" : "amqp")}://{HostName}:{Port}";
}
}
}

0 comments on commit dc52fb1

Please sign in to comment.