Follow http user-agent format

Add version variable without the starting "v"
This commit is contained in:
Chocobo1 2017-03-03 16:58:55 +08:00
parent cb1646be32
commit 2091dfaa69
5 changed files with 14 additions and 10 deletions

View file

@ -91,7 +91,7 @@
static const char PEER_ID[] = "qB";
static const char RESUME_FOLDER[] = "BT_backup";
static const char USER_AGENT[] = "qBittorrent " VERSION;
static const char USER_AGENT[] = "qBittorrent/" QBT_VERSION; // to pass trackers whitelists, using the "v" prefixed version string
namespace libt = libtorrent;
using namespace BitTorrent;