From 23b0bb2b0efef64b72e2b413f377463a6f4aace6 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Thu, 13 Oct 2011 12:42:32 +0000
Subject: [PATCH] Preparation work for OPENDJ-308: Implement access log filtering and configurable message format
---
opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java b/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java
index ffd5370..45cd861 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java
@@ -1112,9 +1112,7 @@
// Check to see if the client is on the denied list.
// If so, then reject it immediately.
if ((deniedClients.length > 0)
- && AddressMask.maskListContains(clientAddr
- .getAddress(), clientAddr.getHostName(),
- deniedClients)) {
+ && AddressMask.maskListContains(clientAddr, deniedClients)) {
clientConnection.disconnect(
DisconnectReason.CONNECTION_REJECTED,
currentConfig.isSendRejectionNotice(),
@@ -1127,9 +1125,7 @@
// there is whether the client is on that list. If
// not, then reject the connection.
if ((allowedClients.length > 0)
- && (!AddressMask.maskListContains(clientAddr
- .getAddress(), clientAddr.getHostName(),
- allowedClients))) {
+ && (!AddressMask.maskListContains(clientAddr, allowedClients))) {
clientConnection.disconnect(
DisconnectReason.CONNECTION_REJECTED,
currentConfig.isSendRejectionNotice(),
--
Gitblit v1.10.0