dovecot-2.2: imap IDLE: Added back fc00::/7 (RFC 4193) to privat...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Aug 25 01:41:59 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/7cbbac45ad49
changeset: 14958:7cbbac45ad49
user: Pascal Volk <user at localhost.localdomain.org>
date: Fri Aug 24 19:44:43 2012 +0000
description:
imap IDLE: Added back fc00::/7 (RFC 4193) to private networks.
This time the check is done correctly.
diffstat:
src/imap/cmd-idle.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diffs (17 lines):
diff -r cdb2d4d89d5d -r 7cbbac45ad49 src/imap/cmd-idle.c
--- a/src/imap/cmd-idle.c Fri Aug 24 09:41:55 2012 +0300
+++ b/src/imap/cmd-idle.c Fri Aug 24 19:44:43 2012 +0000
@@ -178,6 +178,13 @@
if (addr >= 2130706432 && addr <= 2147483647)
return FALSE; /* 127/8 */
}
+#ifdef HAVE_IPV6
+ else if (ip->family == AF_INET6) {
+ addr = ip->u.ip6.s6_addr[0];
+ if (addr == 0xfc || addr == 0xfd)
+ return FALSE; /* fc00::/7 */
+ }
+#endif
return TRUE;
}
More information about the dovecot-cvs
mailing list