Browse Source

- uTorrent user agent is now spoofed correctly

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
84f00bf3f6
  1. 4
      src/bittorrent.cpp
  2. 2
      src/src.pro

4
src/bittorrent.cpp

@ -303,9 +303,11 @@ void Bittorrent::configureSession() { @@ -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;

2
src/src.pro

@ -3,7 +3,7 @@ LANG_PATH = lang @@ -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

Loading…
Cancel
Save