Skip to content

Commit 9d7f24b

Browse files
authored
Merge pull request #1883 from pedroSG94/fix/srt-passphrase
fix handshake conclusion
2 parents 9ca7964 + 8c726df commit 9d7f24b

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

srt/src/main/java/com/pedro/srt/srt/SrtClient.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ class SrtClient(private val connectChecker: ConnectChecker) {
228228

229229
commandsManager.writeHandshake(socket, response.copy(
230230
encryption = commandsManager.getEncryptType(),
231-
extensionField = ExtensionField.HS_REQ.value or ExtensionField.CONFIG.value,
232231
handshakeType = HandshakeType.CONCLUSION,
233232
handshakeExtension = HandshakeExtension(
234233
flags = ExtensionContentFlag.TSBPDSND.value or ExtensionContentFlag.TSBPDRCV.value or

srt/src/main/java/com/pedro/srt/srt/packets/control/handshake/extension/HandshakeExtension.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ data class HandshakeExtension(
7878
return if (mod == 0) {
7979
reverseBlocks(data.asList())
8080
} else {
81-
val bytesToAdd = ByteArray(4 - mod) { 0x00 }.asList()
81+
val bytesToAdd = ByteArray(4 - mod).asList()
8282
val list = data.asList().toMutableList()
8383
list.addAll(bytesToAdd)
8484
reverseBlocks(list)

0 commit comments

Comments
 (0)