Quick fix for argument check problem with IPv6 addresses

The code verifying that a hostname argument is passed on the command
line only checked for IPv4 addresses, but not IPv6 addresses. This
caused the command "netcat -6 ::1 22" to fail with a "missing hostname
argument" error.