fix IPv6 support

The '-6' param didn't work on client, because it forced parsing the argv using 's:p:k:l'.

Fix IPv6 connect error. As Python docs said, "For AF_INET6 address family, a four-tuple (host, port, flowinfo, scopeid) is used".