Use IPv4 format for IPv4-mapped addresses
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 8 Apr 2013 17:34:37 +0000 (19:34 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 8 May 2013 04:57:56 +0000 (06:57 +0200)
commit372cdb136c2fc3f2dc7f07167f00fdf51a1bd037
treeb9e7a87b1de06a94623caea0419c7a5bbd7870b5
parent2d3bac803c00df21aaa6026b125c3d817d3e20b8
Use IPv4 format for IPv4-mapped addresses

For instance, use "127.0.0.1" for IPv4 loopback instead of
"::ffff:127.0.0.1".

Simplifies use of econfig key privip: plain dotted decimal now just
works regardless of IPv6 use, no need to add the IPv4-mapped form.

Also affects how addresses are logged and shown to players, and nation
selector ip.  Nicer that way.
src/lib/global/constants.c
src/lib/player/accept.c
src/lib/w32/sys/socket.h