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 @@ -442,8 +442,8 @@ public void start()
442
442
setHeartbeat (heartbeat );
443
443
444
444
this .connectionInfo = new DefaultConnectionInfo (
445
- this . _frameHandler . getAddress (). getHostAddress (),
446
- this . _frameHandler . getPort ()
445
+ getAddress (),
446
+ getPort ()
447
447
);
448
448
449
449
_channel0 .transmit (new AMQP .Connection .TuneOk .Builder ()
@@ -1236,13 +1236,13 @@ private static class DefaultConnectionInfo implements ObservationCollector.Conne
1236
1236
private final String peerAddress ;
1237
1237
private final int peerPort ;
1238
1238
1239
- private DefaultConnectionInfo (String peerAddress , int peerPort ) {
1240
- this .peerAddress = peerAddress ;
1239
+ private DefaultConnectionInfo (InetAddress address , int peerPort ) {
1240
+ this .peerAddress = address == null ? "" : ( address . getHostAddress () == null ? "" : address . getHostAddress ()) ;
1241
1241
this .peerPort = peerPort ;
1242
1242
}
1243
1243
1244
1244
@ Override
1245
- public String getPeerAddress () {
1245
+ public String getPeerAddress () {
1246
1246
return peerAddress ;
1247
1247
}
1248
1248
You can’t perform that action at this time.
0 commit comments