Skip to content

Update prflx candidate if it is explicitly added as a remote candidate #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 18, 2025

Conversation

mickel8
Copy link
Member

@mickel8 mickel8 commented Mar 18, 2025

Consider scenario where we receive binding request from a remote candidate that hasn't been explicitly trickled yet. We will treat it as prflx giving it possibly lower or higher priority than it should have, which may result in different pairs being selected on both sides (remote will have (host, host) pair while we will have (host, prflx) pair).

This was mentioned in #73

This PR updates candidate's type and priority, as well as pair priority and potentially selected_pair_id if needed.

We do a similar thing to what libnice does: https://github.com/libnice/libnice/blob/master/agent/agent.c#L4163-L4176

@mickel8 mickel8 merged commit f0d7050 into master Mar 18, 2025
4 checks passed
@mickel8 mickel8 deleted the remote-prflx branch March 18, 2025 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant