| | |
| | | import static org.opends.server.loggers.ErrorLogger.logError; |
| | | import static org.opends.server.loggers.debug.DebugLogger.getTracer; |
| | | import static org.opends.server.util.StaticUtils.collectionToString; |
| | | import static org.opends.server.util.StaticUtils.isLocalAddress; |
| | | import static org.opends.server.util.StaticUtils.stackTraceToSingleLineString; |
| | | |
| | | import java.io.IOException; |
| | |
| | | InetAddress[] rs1Addresses = null; |
| | | try |
| | | { |
| | | if (rs1.equals("localhost") || rs1.equals("127.0.0.1")) |
| | | if (isLocalAddress(rs1)) |
| | | { |
| | | // Replace localhost with the local official hostname |
| | | rs1 = InetAddress.getLocalHost().getHostName(); |
| | |
| | | InetAddress[] rs2Addresses = null; |
| | | try |
| | | { |
| | | if (rs2.equals("localhost") || rs2.equals("127.0.0.1")) |
| | | if (isLocalAddress(rs1)) |
| | | { |
| | | // Replace localhost with the local official hostname |
| | | rs2 = InetAddress.getLocalHost().getHostName(); |