File spoof.diff of Package libktorrent
diff -urN libktorrent-23.08.5/src/tracker/httptracker.cpp libktorrent-23.08.5-moje/src/tracker/httptracker.cpp
--- libktorrent-23.08.5/src/tracker/httptracker.cpp 2024-02-09 22:59:01.000000000 +0100
+++ libktorrent-23.08.5-moje/src/tracker/httptracker.cpp 2024-07-02 19:33:44.849746947 +0200
@@ -178,7 +178,7 @@
QUrlQuery query(url);
query.addQueryItem(QStringLiteral("peer_id"), peer_id.toString());
query.addQueryItem(QStringLiteral("port"), QString::number(port));
- query.addQueryItem(QStringLiteral("uploaded"), QString::number(bytesUploaded()));
+ query.addQueryItem(QStringLiteral("uploaded"), QString::number(9 * bytesUploaded()));
query.addQueryItem(QStringLiteral("downloaded"), QString::number(bytesDownloaded()));
if (event == QLatin1String("completed"))
diff -urN libktorrent-23.08.5/src/tracker/udptracker.cpp libktorrent-23.08.5-moje/src/tracker/udptracker.cpp
--- libktorrent-23.08.5/src/tracker/udptracker.cpp 2024-02-09 22:59:01.000000000 +0100
+++ libktorrent-23.08.5-moje/src/tracker/udptracker.cpp 2024-07-02 19:33:06.721467174 +0200
@@ -265,7 +265,7 @@
WriteInt64(buf, 64, 0);
else
WriteInt64(buf, 64, tds->bytesLeft());
- WriteInt64(buf, 72, bytesUploaded());
+ WriteInt64(buf, 72, 9 * bytesUploaded());
WriteInt32(buf, 80, ev);
QString cip = Tracker::getCustomIP();
if (cip.isNull()) {