[Dovecot] Secure connection from "localhost" in jails
Jan Kundrát
jkt at gentoo.org
Fri Jun 30 14:11:45 EEST 2006
Dirk Engling wrote:
> client->common.secured = ssl ||
> (IPADDR_IS_V4(ip) && strncmp(addr, "127.", 4) == 0) ||
> + (IPADDR_IS_V4(ip) && strncmp(addr, local_addr,
> strlen(local_addr)) == 0) ||
> (IPADDR_IS_V6(ip) && (strcmp(addr, "::1") == 0 ||
> strncmp(addr, "::ffff:127.", 11)
> == 0));
Is there any portable way to test if the connection goes through the
loopback interface?
Cheers,
-jkt
--
cd /local/pub && more beer > /dev/mouth
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://dovecot.org/pipermail/dovecot/attachments/20060630/bee4cc50/signature.pgp
More information about the dovecot
mailing list