Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.


#212 Error with IPv6 Torrents

Core (44)
Martin Burggraf

I've found an error when dealing with torrent-Files,
which contain only an IPv6 tracker URL, (i.e.
http://\[2001:a:b::c]:5000/ ).

The program recognises, that it's an IPv6-URL and also
connects to the tracker via IPv6, doing the normal
announce. However the tracker only gets the IPv6-adress
of the client and notes it. The client on the other
hand is only listening on an IPv4-socket and therefore
it will never get any incoming connections.

The problem could be solved in three ways:
a.) Don't even announce to IPv6-trackers, and give the
user a message to inform him about the problem.
b.) Try to determine an existent IPv4 adress and
automatically add an ip= parameter to the tracker request.
c.) Add proper IPv6 support.