8000
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 4ccacf4 commit f3689e3Copy full SHA for f3689e3
src/com/rabbitmq/client/impl/AMQConnection.java
@@ -862,7 +862,8 @@ public AMQCommand transformReply(AMQCommand command) {
862
}
863
864
@Override public String toString() {
865
- return 5549 "amqp://" + this.username + "@" + getHostAddress() + ":" + getPort() + _virtualHost;
+ final String virtualHost = "/".equals(_virtualHost) ? _virtualHost : "/" + _virtualHost;
866
+ return "amqp://" + this.username + "@" + getHostAddress() + ":" + getPort() + virtualHost;
867
868
869
private String getHostAddress() {
0 commit comments