From 8792637634dcb7831d205a8b6ee1429af6dfed7b Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 3 Sep 2009 11:29:15 +0000 Subject: [PATCH] - Fixed uTorrent spoofing code --- Changelog | 2 ++ src/bittorrent.cpp | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index e788fbf2c..5841ca5a4 100644 --- a/Changelog +++ b/Changelog @@ -12,11 +12,13 @@ - FEATURE: If a torrent contains a torrent file, process downloaded torrent file too - FEATURE: A random listening port can be chosen automatically - BUGFIX: torrent resume code rewrited + - BUGFIX: Fixed uTorrent spoofing code - BUGFIX: Greatly improved column sorting code - BUGFIX: Possibility to create trackerless torrents - BUGFIX: Better item coloring in torrent content filtering dialog - COSMETIC: Redesigned search tab to improve usability - COSMETIC: Redesigned RSS tab to improve usability + - COSMETIC: Improved tracker errors readability * Sun Aug 21 2009 - Christophe Dumez - v1.4.1 - BUGFIX: Fix problems when changing save path (if using temporary download folder) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 218a252f8..47fe6403c 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -62,11 +62,14 @@ bittorrent::bittorrent() : DHTEnabled(false), preAllocateAll(false), addInPause( // Creating bittorrent session // Check if we should spoof utorrent QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent")); - if(settings.value(QString::fromUtf8("AzureusSpoof"), false).toBool()) { + if(settings.value(QString::fromUtf8("Preferences/Bittorrent/AzureusSpoof"), false).toBool()) { s = new session(fingerprint("UT", 1, 8, 4, 0), 0); + qDebug("Peer ID: %s", fingerprint("UT", 1, 8, 4, 0).to_string().c_str()); } else { s = new session(fingerprint("qB", VERSION_MAJOR, VERSION_MINOR, VERSION_BUGFIX, 0), 0); + qDebug("Peer ID: ", fingerprint("qB", VERSION_MAJOR, VERSION_MINOR, VERSION_BUGFIX, 0).to_string().c_str()); } + // Set severity level of libtorrent session //s->set_alert_mask(alert::all_categories & ~alert::progress_notification); s->set_alert_mask(alert::error_notification | alert::peer_notification | alert::port_mapping_notification | alert::storage_notification | alert::tracker_notification | alert::status_notification | alert::ip_block_notification);