algesten / str0m

A synchronous sans I/O WebRTC implementation in Rust.
MIT License
280 stars 45 forks source link

Make `RtcConfig` local ICE creds optional #491

Closed OxleyS closed 3 months ago

OxleyS commented 3 months ago

RtcConfig no longer stores local ICE credentials by default, instead generating new credentials every time an Rtc instance is created with that config. Alternatively, the local credentials can be explicitly set to preserve previous behavior.

This fixes an API issue where the user may accidentally create multiple Rtc instances with the same credentials, causing potential STUN traffic misrouting.