Resolve issue #2 typo AF_INET to AF_INET6