Registered Member
|
I made a patch to send the user-agent to picky trackers.
Index: libtorrent/httptracker.cpp =================================================================== --- libtorrent/httptracker.cpp (revision 467610) +++ libtorrent/httptracker.cpp (working copy) @@ -27,6 +27,9 @@ #include "torrentcontrol.h" #include "bdecoder.h" #include "peermanager.h" +#include <config.h> namespace bt @@ -161,8 +164,11 @@ void HTTPTracker::doRequest(const QString & host,const QString & path,Uint16 p) { - QHttpRequestHeader header( "GET",path); - header.setValue( "Host",host ); + QHttpRequestHeader header( "GET", path ); + header.setValue( "Host", host ); +#ifdef HAVE_CONFIG_H + header.setValue( "User-Agent", "KTorrent-"VERSION ); +#endif http->setHost(host,p); cid = http->request(header); |
Moderator
|
Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]