make the socket type less specific

This fixes an ipv6 issue in #2