fixed ipv4 / ipv6 bug