Fix IPv4 stats

net.ParseIP() will return a v4mapped address which makes len(ip) ==
IPv6len and breaks stats for IPv4 requests.
Merge pull request #33 from psaab/develop

Fix IPv4 stats
add missing json struct tag