fixed problem detecting inet based socket for ipv6