Patch from Jason Schoon to add IPV6 support to telnetd. Reworked by Rob