We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a1a0e31 + adaf9d3 commit ad8588bCopy full SHA for ad8588b
p2p/src/service_impl/webrtc/webrtc_rs.rs
@@ -54,7 +54,10 @@ pub enum RTCSignalingError {
54
55
impl RTCConnection {
56
pub async fn create(api: &Api, config: RTCConfig) -> Result<Self> {
57
- api.new_peer_connection(config.into())
+ let mut configuration = RTCConfiguration::from(config);
58
+ // try default certificate, TODO(vlad): do it right
59
+ configuration.certificates.clear();
60
+ api.new_peer_connection(configuration)
61
.await
62
.map(|v| Self(v.into(), true))
63
}
0 commit comments