shinyoshiaki / werift-webrtc

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

Add ability to filter candidate pairs #343

Closed koush closed 10 months ago

koush commented 10 months ago

We had discussed this earlier: https://github.com/shinyoshiaki/werift-webrtc/issues/338

I need a way to be able to filter candidate pairs. T-Mobile has a highly lossy 6to4 gateway, and during candidate pairing/selection, I need to be able to filter out all STUN/TURN candidates that may originate from this gateway (can determine it is tmobile by 192.0.0.4 local candidate). In my use case, this forces either a full IPv6 connection via STUN or an IPv4 connection TURN (which provides a functional 6to4 gateway).

shinyoshiaki commented 10 months ago

thanks