mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
13.23.2011 96eaa516a85e620a6b76a64ffbe71cdc6037e026
opends/src/server/org/opends/server/replication/protocol/TLSSocketSession.java
@@ -63,6 +63,8 @@
  private final InputStream plainInput;
  private final OutputStream plainOutput;
  private final byte[] rcvLengthBuf = new byte[8];
  private final String readableRemoteAddress;
  private final String remoteAddress;
  /**
   * The time the last message published to this session.
@@ -120,6 +122,10 @@
    this.plainOutput = plainSocket.getOutputStream();
    this.input = secureSocket.getInputStream();
    this.output = secureSocket.getOutputStream();
    this.readableRemoteAddress = plainSocket.getRemoteSocketAddress()
        .toString();
    this.remoteAddress = plainSocket.getInetAddress()
        .getHostAddress();
  }
@@ -256,7 +262,7 @@
  @Override
  public String getReadableRemoteAddress()
  {
    return plainSocket.getRemoteSocketAddress().toString();
    return readableRemoteAddress;
  }
@@ -267,7 +273,7 @@
  @Override
  public String getRemoteAddress()
  {
    return plainSocket.getInetAddress().getHostAddress();
    return remoteAddress;
  }