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

Support ICE servers auth #920

Merged
merged 5 commits into from
Mar 26, 2024

Conversation

marcovidonis
Copy link
Collaborator

Support passing ICE servers of type []webrtc.ICEServer to the client config. This effectively enables the use of TURN servers when NAT traversal is needed. TURN servers normally require authentication, and the current implementation doesn't allow for that in the client config.

Fixes #903.

This allows specifying credentials for access to servers,
in particular TURN servers.
@marcovidonis marcovidonis requested a review from anacrolix March 25, 2024 10:47
Copy link
Owner

@anacrolix anacrolix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really good, thanks. Let me know if you don't have time to make the changes and I'll finish it. If you do have time, run https://github.com/anacrolix/gorond over the repo, it will fix up your imports.

config.go Outdated Show resolved Hide resolved
webtorrent/tracker-client.go Outdated Show resolved Hide resolved
@marcovidonis marcovidonis requested a review from anacrolix March 26, 2024 09:35
@anacrolix anacrolix merged commit 1830d85 into anacrolix:master Mar 26, 2024
10 checks passed
@anacrolix
Copy link
Owner

Thank you sir

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.

ICE Servers config doesn't support authentication for TURN servers
2 participants