>> >    p TCPsocket.getaddress('localhost')
>> >returns
>> >    "::ffff:127.0.0.1"
>> >I'm wondering if I'm looking at some IPV6 strangeness. The ext/socket
>> >code looks for a #define INET6, but this doesn't seem to appear in my
>> >system.
>> >As it is, the return value is breaking net/ftp.
>> >Anyone got any ideas?
>> 	which operating system are you using?
>Linux zip 2.2.10-smp #8 SMP Tue Sep 28 20:47:02 CDT 1999 i686 unknown
>It's a Suse 6.2 distribution.

	Linux with glibc 2.1 or higher has IPv6 ready library in it.
	TCPsocket.getaddress obeys the idea of libc, so you get IPv6 address
	when the libc returns them.  ftplib is trying to make use of both
	IPv4 and IPv6.

	still not sure why you get ::ffff:127.0.0.1... you should be getting
	::1, or 127.0.0.1.  It seems to me that either (1) getaddrinfo is buggy
	(2) ::ffff:127.0.0.1 is in /etc/hosts.

itojun