On Jan 14, 2004, at 10:26 AM, Andrea Riela wrote:
The "::ffff:192.168.17.13" for me is a strange thing too. But, If you say
no, I agree with you.

Here's the patch to fix that, currently in CVS, that will be in the next release (which will probably be out by the end of the week). Courier might still log that IPv6 address, but the opensmtp file will have the correct IPv4 address.


Update of /cvsroot/vpopmail/vpopmail
In directory sc8-pr-cvs1:/tmp/cvs-serv13384

Modified Files:
vchkpw.c vpopmail.c
Log Message:
log IPv4 address instead if IPv6 address in lastlog table (and fix bug in related get_remote_ip() code in vpopmail.c) [876019]


Index: vchkpw.c
===================================================================
RCS file: /cvsroot/vpopmail/vpopmail/vchkpw.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- vchkpw.c    13 Jan 2004 06:09:18 -0000      1.10
+++ vchkpw.c    13 Jan 2004 15:59:42 -0000      1.11
@@ -105,7 +105,7 @@
 {
  char *tmpstr;

-  if ( (IpAddr = getenv("TCPREMOTEIP"))  == NULL) IpAddr="";
+  if ( (IpAddr = get_remote_ip())  == NULL) IpAddr="";
   if ( (tmpstr = getenv("TCPLOCALPORT")) == NULL) LocalPort = 110;
   else LocalPort = atoi(tmpstr);


Index: vpopmail.c =================================================================== RCS file: /cvsroot/vpopmail/vpopmail/vpopmail.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- vpopmail.c 13 Jan 2004 05:24:18 -0000 1.27 +++ vpopmail.c 13 Jan 2004 15:59:42 -0000 1.28 @@ -3058,7 +3058,7 @@ char *p;

ipenv = getenv("TCPREMOTEIP");
- if ((ipenv == NULL) || (strlen(ipenv) > sizeof(ipaddr))) return ipenv;
+ if ((ipenv == NULL) || (strlen(ipenv) > sizeof(ipbuf))) return ipenv;


   strcpy (ipbuf, ipenv);
   ipaddr = ipbuf;

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



Reply via email to