From 84f00bf3f66b706d08089b64b22336e4e250d911 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 11 Dec 2009 12:18:00 +0000 Subject: [PATCH] - uTorrent user agent is now spoofed correctly --- src/bittorrent.cpp | 4 +++- src/src.pro | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 4dfcd60fe..2da207aac 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -303,9 +303,11 @@ void Bittorrent::configureSession() { // * Session settings session_settings sessionSettings; if(Preferences::isUtorrentSpoofingEnabled()) { - sessionSettings.user_agent = "uTorrent/1850"; + sessionSettings.user_agent = "uTorrent/1850(17414)"; + qDebug("User agent is: BTWebClient/1850(17414)"); } else { sessionSettings.user_agent = "qBittorrent "VERSION; + qDebug("User agent is: qBittorrent "VERSION); } sessionSettings.upnp_ignore_nonrouters = true; sessionSettings.use_dht_as_fallback = false; diff --git a/src/src.pro b/src/src.pro index bb992533b..1d451e272 100644 --- a/src/src.pro +++ b/src/src.pro @@ -3,7 +3,7 @@ LANG_PATH = lang ICONS_PATH = Icons # Set the following variable to 1 to enable debug -DEBUG_MODE = 0 +DEBUG_MODE = 1 # Global TEMPLATE = app