From e9558df199c35c488de80b8a2acd7d4149d46db1 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
---
opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java b/opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java
index ffd5370..45cd861 100644
--- a/opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java
+++ b/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