Fix %I macro expansion for IPv4 mapped IPv6 addresses.
commitecbc067bbf5a22dd1ad8e9881af047c427b27e58
authorMichael Adam <obnox@samba.org>
Thu, 13 Mar 2008 22:02:58 +0000 (13 23:02 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 17 Mar 2008 13:05:05 +0000 (17 14:05 +0100)
tree75a78c3494c59022355ec938b19a0c665debaa83
parent380ce42f5aabd649a88d9598900e9357534b3c06
Fix %I macro expansion for IPv4 mapped IPv6 addresses.

On some systems (linux e.g.), when listening on ipv6 and ipv4,
addresses of ipv4 clients are printed as mapped ipv4 addresses
by getnameinfo (e.g. ::ffff:127.0.0.1). This re-establishes
the original behaviour of %I to expand to the plain ipv4 address
for an ipv4 client.

Michael
(cherry picked from commit 0abc8863f87fe5d2473492797c010784cb086008)
source/lib/substitute.c