mirror of
https://github.com/jwetzell/psn-js.git
synced 2026-08-17 13:23:43 +00:00
fix info packet size calc
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ export class Encoder {
|
||||
const trackerChunksLists: Buffer[][] = [];
|
||||
let currentTrackerList: Buffer[] = [];
|
||||
|
||||
let currentInfoPacketSize = Constants.MAX_UDP_PACKET_SIZE + systemNameChunk.length + Constants.CHUNK_HEADER_SIZE;
|
||||
let currentInfoPacketSize = Constants.PACKET_HEADER_SIZE + systemNameChunk.length + Constants.CHUNK_HEADER_SIZE;
|
||||
|
||||
trackerChunks.forEach((trackerChunk: Buffer) => {
|
||||
if (currentInfoPacketSize + trackerChunk.length > Constants.MAX_UDP_PACKET_SIZE) {
|
||||
|
||||
Reference in New Issue
Block a user