ipv6: fix the bug of address check