From 654d79c58fbdedb98df7a5c8ea04e3e9b0ba545d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20G=C3=B6ttsch?= Date: Sun, 14 Jun 2026 19:26:59 +0200 Subject: [PATCH] stripSDP: also filter a=sctp-port line --- crypto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto.js b/crypto.js index 959ccb3..1e0f0e0 100644 --- a/crypto.js +++ b/crypto.js @@ -73,7 +73,7 @@ function hexToBuf(hex) { function stripSDP(sdp) { return sdp.split(/\r?\n/).map(line => { - if (line === '' || line.startsWith('a=max-message-size:')) return null; + if (line === '' || line.startsWith('a=max-message-size:') || line.startsWith('a=sctp-port:')) return null; if (!line.startsWith('a=candidate:')) return line; const parts = line.split(' '); if (parts[2] === 'tcp') return null;