File tree 1 file changed +5
-5
lines changed
src/main/java/com/rabbitmq/client/impl
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -433,8 +433,8 @@ public void start()
433
433
setHeartbeat (negotiatedHeartbeat );
434
434
435
435
this .connectionInfo = new DefaultConnectionInfo (
436
- this . _frameHandler . getAddress (). getHostAddress (),
437
- this . _frameHandler . getPort ()
436
+ getAddress (),
437
+ getPort ()
438
438
);
439
439
440
440
_channel0 .transmit (new AMQP .Connection .TuneOk .Builder ()
@@ -1225,13 +1225,13 @@ private static class DefaultConnectionInfo implements ObservationCollector.Conne
1225
1225
private final String peerAddress ;
1226
1226
private final int peerPort ;
1227
1227
1228
- private DefaultConnectionInfo (String peerAddress , int peerPort ) {
1229
- this .peerAddress = peerAddress ;
1228
+ private DefaultConnectionInfo (InetAddress address , int peerPort ) {
1229
+ this .peerAddress = address == null ? "" : ( address . getHostAddress () == null ? "" : address . getHostAddress ()) ;
1230
1230
this .peerPort = peerPort ;
1231
1231
}
1232
1232
1233
1233
@ Override
1234
- public String getPeerAddress () {
1234
+ public String getPeerAddress () {
1235
1235
return peerAddress ;
1236
1236
}
1237
1237
You can’t perform that action at this time.
0 commit comments