From 41e1069c089436d4ccae81dae22b574517add3d4 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 12 Apr 2006 11:55:38 +0000 Subject: [PATCH] Temporarily enable full log for access from IP with NIS GROUP client --- etc/config.xml | 29 +++++++++++++++-------------- src/yaz-proxy.cpp | 8 ++++++-- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/etc/config.xml b/etc/config.xml index c48eab2..6228571 100644 --- a/etc/config.xml +++ b/etc/config.xml @@ -1,5 +1,5 @@ - + localhost:9999 - 30 - 60 - a/b + 60 + 20 + - 1000000 - 1000 + 100000 + 100 2000000 - 60 + 10 100 3 @@ -37,20 +37,21 @@ dc - 0 + 2 iso-8859-1 pqf.properties + - 30 - 10 - 10 - 5 - client-requests server-requests client-ip +--> + 20 + + + + client-ip doc diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index bf5fa4b..27455b8 100644 --- a/src/yaz-proxy.cpp +++ b/src/yaz-proxy.cpp @@ -1,4 +1,4 @@ -/* $Id: yaz-proxy.cpp,v 1.53 2006-04-12 11:30:52 adam Exp $ +/* $Id: yaz-proxy.cpp,v 1.54 2006-04-12 11:55:42 adam Exp $ Copyright (c) 1998-2006, Index Data. This file is part of the yazproxy. @@ -470,8 +470,12 @@ IPDU_Observer *Yaz_Proxy::sessionNotify(IPDU_Observable new_proxy->set_default_target(m_default_target); new_proxy->m_max_clients = m_max_clients; new_proxy->m_log_mask = m_log_mask; + + if (!strcmp(peername, "tcp:163.121.19.82")) // NIS GROUP + new_proxy->m_log_mask = 255; + new_proxy->set_APDU_log(get_APDU_log()); - if (m_log_mask & PROXY_LOG_APDU_CLIENT) + if (new_proxy->m_log_mask & PROXY_LOG_APDU_CLIENT) new_proxy->set_APDU_yazlog(1); else new_proxy->set_APDU_yazlog(0); -- 1.7.10.4