We need to discard candidates thare are routed through any of our received routes (minus default route).
The existing approach to discard candidates when received in onCandidate doesn't catch prflx ones.
Hence we block candidates directly in the muxerconn's WriteTo method.
Additonally this PR ensures we have routes present before deciding to discard ICE candidates that might be routed to other peers.
Issue ticket number and link
Checklist
[x] Is it a bug fix
[ ] Is a typo/documentation fix
[ ] Is a feature enhancement
[ ] It is a refactor
[ ] Created tests that fail without the change (if possible)
[ ] Extended the README / documentation, if necessary
Describe your changes
We need to discard candidates thare are routed through any of our received routes (minus default route). The existing approach to discard candidates when received in
onCandidate
doesn't catchprflx
ones. Hence we block candidates directly in the muxerconn'sWriteTo
method.Additonally this PR ensures we have routes present before deciding to discard ICE candidates that might be routed to other peers.
Issue ticket number and link
Checklist