add support of IPv6 to telnet

Now, by default telnet use any family. Protocol can be specified by -4
and -6 options.