small-package/qBittorrent-Enhanced-Edition/patches/100-use-original-user-agent...

24 lines
792 B
Diff
Raw Normal View History

2022-12-28 08:45:18 +08:00
--- a/src/base/version.h.in
+++ b/src/base/version.h.in
@@ -31,7 +31,7 @@
#define QBT_VERSION_MAJOR 4
2023-03-01 23:38:49 +08:00
#define QBT_VERSION_MINOR 5
#define QBT_VERSION_BUGFIX 2
2022-12-28 08:45:18 +08:00
-#define QBT_VERSION_BUILD 10
+#define QBT_VERSION_BUILD 0
#define QBT_VERSION_STATUS "" // Should be empty for stable releases!
2023-03-01 23:38:49 +08:00
#define QBT__STRINGIFY(x) #x
2022-12-28 08:45:18 +08:00
--- a/src/base/bittorrent/sessionimpl.cpp
+++ b/src/base/bittorrent/sessionimpl.cpp
@@ -122,7 +122,7 @@ const int STATISTICS_SAVE_INTERVAL = std::chrono::milliseconds(15min).count();
2022-06-27 20:22:34 +08:00
namespace
{
const char PEER_ID[] = "qB";
2022-12-28 08:45:18 +08:00
- const auto USER_AGENT = QStringLiteral("qBittorrent Enhanced/" QBT_VERSION_2);
+ const auto USER_AGENT = QStringLiteral("qBittorrent/" QBT_VERSION_2);
2022-06-27 20:22:34 +08:00
void torrentQueuePositionUp(const lt::torrent_handle &handle)
{