[dovecot-cvs] dovecot/src/pop3-login client.c,1.39,1.40
cras at dovecot.org
cras at dovecot.org
Sun Jan 30 09:59:27 EET 2005
Update of /var/lib/cvs/dovecot/src/pop3-login
In directory talvi:/tmp/cvs-serv11831/pop3-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/pop3-login/client.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- client.c 9 Jan 2005 00:48:05 -0000 1.39
+++ client.c 30 Jan 2005 07:59:25 -0000 1.40
@@ -315,7 +315,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