File tree Expand file tree Collapse file tree
srt/src/main/java/com/pedro/srt/srt
packets/control/handshake/extension Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments