X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmod_helsinki.cpp;h=af6b211a940f64e0887b7969cd457537edff2009;hb=d119ba229b6c9257c4efb634bf7425d6595196ff;hp=9de92509f504328c054c823cd86cce877702fd0a;hpb=c990b5f85d736a35132c6902ba8b2966d5146360;p=yazproxy-moved-to-github.git diff --git a/src/mod_helsinki.cpp b/src/mod_helsinki.cpp index 9de9250..af6b211 100644 --- a/src/mod_helsinki.cpp +++ b/src/mod_helsinki.cpp @@ -1,4 +1,4 @@ -/* $Id: mod_helsinki.cpp,v 1.2 2006-06-28 23:38:23 adam Exp $ +/* $Id: mod_helsinki.cpp,v 1.4 2007-10-08 08:14:02 adam Exp $ Copyright (c) 1998-2005, Index Data. This file is part of the yaz-proxy. @@ -29,7 +29,7 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include -#if HAVE_XSLT +#if YAZ_HAVE_XSLT #include #include #include @@ -125,7 +125,7 @@ int my_authenticate(void *user_handle, { // see if we have an "args" attribute const char *args = 0; -#if HAVE_XSLT +#if YAZ_HAVE_XSLT xmlNodePtr ptr = (xmlNodePtr) element_ptr; struct _xmlAttr *attr; @@ -161,6 +161,8 @@ int my_authenticate(void *user_handle, const char *pIP = peer_IP; if (strncmp(pIP, "tcp:", 4) == 0) pIP += 4; + if (strncmp(pIP, "::ffff:", 7) == 0) + pIP += 7; IP_ADDRESS peer_address; if (str_to_address(pIP, &peer_address) != 4) yaz_log(YLOG_WARN, "Authentication: could not decode peer IP address %s properly", pIP);