shinyoshiaki / werift-webrtc

WebRTC Implementation for TypeScript (Node.js), includes ICE/DTLS/SCTP/RTP/SRTP/WEBM/MP4
MIT License
472 stars 31 forks source link

Fix 'ipAddressFromSdp' used instead of 'ipAddressToSdp' #268

Closed oeed closed 1 year ago

oeed commented 1 year ago

The toJSON function on SessionDescription was crashing because it was calling ipAddressFromSdp with this.host, which is just an ip address like '0.0.0.0' as it has already been parsed. It instead needs to convert the IP to the SDP string here.