[dovecot-cvs] dovecot/src/imap-login client.c,1.39,1.40

cras at dovecot.org cras at dovecot.org
Sun Jan 30 09:59:19 EET 2005


Update of /var/lib/cvs/dovecot/src/imap-login
In directory talvi:/tmp/cvs-serv11831/imap-login

Modified Files:
	client.c 
Log Message:
Treat ::ffff:127.* addresses as secure as well.



Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap-login/client.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- client.c	28 Nov 2004 00:04:29 -0000	1.39
+++ client.c	30 Jan 2005 07:59:15 -0000	1.40
@@ -407,7 +407,8 @@
         addr = net_ip2addr(ip);
 	client->common.secured = ssl ||
 		(IPADDR_IS_V4(ip) && strncmp(addr, "127.", 4) == 0) ||
-		(IPADDR_IS_V6(ip) && strcmp(addr, "::1") == 0);
+		(IPADDR_IS_V6(ip) && (strcmp(addr, "::1") == 0 ||
+				      strncmp(addr, "::ffff:127.", 11) == 0);
 
 	client->common.local_ip = *local_ip;
 	client->common.ip = *ip;



More information about the dovecot-cvs mailing list