Check IPv6 vs IPv4 strictly, using To16 and To4

Signed-off-by: Justin Santa Barbara <justin@fathomdb.com>