On 24/02/2019 07:47, Ian Zimmerman via Exim-dev wrote: > On 2019-02-10 23:03, Jeremy Harris wrote: > >> If you can reliably detect the ipv6-ness, yes, that sounds like the >> minimally intrusive way. > > How are the IPv4-mapped IPv6 addresses written in Exim? > > The straight translation to dots instead of colons would be ambiguous, > wouldn't it? Say, ..ffff.188.8.131.52 could mean either the mapped address > or the normal IPv6 address 0:0:0:ffff:0001:0002:0003:0004 .
You can write them either way; both are acceptable and the number-base of the dotted-portion gets translated ( .234 does _not_ become :0234 ). But that's ipv6 addresses given to exim, not how they are given to the place you're coding. I think you need to check, given that a colon-to-dot translation has been done by the time it hits you. I'd expect conversion to unabbreviated form to have been done too. -- Cheers, Jeremy -- ## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##