This commit is contained in:
coffeeneed 2026-03-15 14:46:43 +00:00 committed by GitHub
commit 6c2b3846dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 4 deletions

View file

@ -2,7 +2,7 @@ test:
go test ./... -count=1 --cover
torrent-test:
go run main.go -c qbit-4.3.3 -t bencode/torrent_files_test/debian-12.0.0-amd64-DVD-1.iso.torrent -d 0% -ds 100kbps -u 0% -us 100kbps
go run main.go -c qbit-5.1.4 -t bencode/torrent_files_test/debian-12.0.0-amd64-DVD-1.iso.torrent -d 0% -ds 100kbps -u 0% -us 100kbps
release:
@if test -z "$(rsversion)"; then echo "usage: make release rsversion=v1.2"; exit 1; fi
@ -12,4 +12,4 @@ release:
env GOOS=linux GOARCH=amd64 go build -v -o ./out/linux/ratio-spoof .
env GOOS=windows GOARCH=amd64 go build -v -o ./out/windows/ratio-spoof.exe .
cd out/ ; zip ratio-spoof-$(rsversion)\(linux-mac-windows\).zip -r .
cd out/ ; zip ratio-spoof-$(rsversion)\(linux-mac-windows\).zip -r .

View file

@ -31,7 +31,7 @@ required arguments:
<INITIAL_DOWNLOADED> and <INITIAL_UPLOADED> must be in %, b, kb, mb, gb, tb
<DOWNLOAD_SPEED> and <UPLOAD_SPEED> must be in kbps, mbps
[CLIENT_CODE] options: qbit-4.0.3, qbit-4.3.3
[CLIENT_CODE] options: qbit-4.0.3, qbit-4.3.3, qbit-5.1.4
```
```

View file

@ -0,0 +1,17 @@
{
"name": "qBittorrent v5.1.4",
"peerId": {
"regex":"-qB5140-[A-Za-z0-9_~\\(\\)\\!\\.\\*-]{12}"
},
"key": {
"generator": "defaultKeyGenerator"
},
"rounding": {
"generator": "defaultRoudingGenerator"
},
"query": "info_hash={infohash}&peer_id={peerid}&port={port}&uploaded={uploaded}&downloaded={downloaded}&left={left}&corrupt=0&key={key}&event={event}&numwant={numwant}&compact=1&no_peer_id=1&supportcrypto=1&redundant=0",
"headers": {
"User-Agent": "qBittorrent/5.1.4",
"Accept-Encoding": "gzip"
}
}

View file

@ -41,7 +41,7 @@ required arguments:
<INITIAL_DOWNLOADED> and <INITIAL_UPLOADED> must be in %, b, kb, mb, gb, tb
<DOWNLOAD_SPEED> and <UPLOAD_SPEED> must be in kbps, mbps
[CLIENT_CODE] options: qbit-4.0.3, qbit-4.3.3
[CLIENT_CODE] options: qbit-4.0.3, qbit-4.3.3, qbit-5.1.4
`)
}