Accept IPv6 IP in arguments, as well as hostnames.

I don't think the port is optional here shouldn't it be: `^(.+)(?:[:]([0-9]+))?$`