stripSDP: also filter a=sctp-port line
All checks were successful
Pin to IPFS / pin (push) Successful in 14s
All checks were successful
Pin to IPFS / pin (push) Successful in 14s
This commit is contained in:
parent
b51169b545
commit
654d79c58f
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ function hexToBuf(hex) {
|
||||||
|
|
||||||
function stripSDP(sdp) {
|
function stripSDP(sdp) {
|
||||||
return sdp.split(/\r?\n/).map(line => {
|
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;
|
if (!line.startsWith('a=candidate:')) return line;
|
||||||
const parts = line.split(' ');
|
const parts = line.split(' ');
|
||||||
if (parts[2] === 'tcp') return null;
|
if (parts[2] === 'tcp') return null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue