Skip to content

Commit 603b3a6

Browse files
author
anonymous
committed
[feat] Add v2.6.2, fix udp connection error.
1 parent 0eb0d80 commit 603b3a6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ ANDROID_COMPILE_SDK=36
2727
ANDROID_MIN_SDK=26
2828
ANDROID_TARGET_SDK=36
2929

30-
VERSION_NAME=2.6.1
31-
VERSION_CODE=25072501
30+
VERSION_NAME=2.6.2
31+
VERSION_CODE=25072901

net/src/main/java/com/tans/tfiletransporter/netty/handlers/DatagramDataToPckAddrDataDecoder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class DatagramDataToPckAddrDataDecoder(
2020
val messageId = buffer.readLong()
2121
val bodySize = buffer.writerIndex() - buffer.readerIndex()
2222
val byteArrayValue = byteArrayPool.get(bodySize)
23-
buffer.readBytes(byteArrayValue.value)
23+
buffer.readBytes(byteArrayValue.value, 0, bodySize)
2424
super.channelRead(
2525
ctx, PackageDataWithAddress(
2626
receiverAddress = msg.sender(),

0 commit comments

Comments
 (0)