Skip to content
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

feat: explicitly set base of server-reflexive addresses #455

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

thomaseizinger
Copy link
Collaborator

Without further adjustments, this will set Transmit.source to the provided base here. Opening this here because we are (temporarily) depending on it.

Resolves: #453.

@algesten
Copy link
Owner

Thanks. I need to circle back to this later this week. Did a mega-deploy at work today, so it's been busy.

@thomaseizinger
Copy link
Collaborator Author

Thanks. I need to circle back to this later this week. Did a mega-deploy at work today, so it's been busy.

No worries at all. If you want to see how it is used, check the linked PR :)
The gist is: Check if src is a TURN server IP, if yes, wrap in channel-data message, otherwise forward. This now works because base for srflx addresses is the local host candidate.

github-merge-queue bot pushed a commit to firezone/firezone that referenced this pull request Jan 31, 2024
…ckets (#3411)

It turns out that we need to do some post-processing of the
`Transmit.source` attribute from `str0m`. In its current state, `str0m`
may also set that to a server-reflexive address which is **not** a local
socket. There is a longer discussion around this here:
algesten/str0m#453.

This depends on an unmerged PR in `str0m`:
algesten/str0m#455.
@algesten algesten marked this pull request as ready for review February 1, 2024 20:17
@algesten algesten merged commit 51acd55 into algesten:main Feb 1, 2024
22 checks passed
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.

How to correctly handle Transmit::source and Candidate::base?
2 participants