projects
/
yazproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0edbabd
)
Handle IPV6 peer addresses (bug #1398).
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 8 Oct 2007 08:14:02 +0000
(08:14 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 8 Oct 2007 08:14:02 +0000
(08:14 +0000)
src/mod_helsinki.cpp
patch
|
blob
|
history
diff --git
a/src/mod_helsinki.cpp
b/src/mod_helsinki.cpp
index
a627945
..
af6b211
100644
(file)
--- a/
src/mod_helsinki.cpp
+++ b/
src/mod_helsinki.cpp
@@
-1,4
+1,4
@@
-/* $Id: mod_helsinki.cpp,v 1.3 2006-07-06 11:50:26 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.
Copyright (c) 1998-2005, Index Data.
This file is part of the yaz-proxy.
@@
-161,6
+161,8
@@
int my_authenticate(void *user_handle,
const char *pIP = peer_IP;
if (strncmp(pIP, "tcp:", 4) == 0)
pIP += 4;
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);
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);