check is_v6() for ipv6

for https://github.com/cybozu/yrmcds/issues/23