anacrolix / torrent

Full-featured BitTorrent client package and utilities
Mozilla Public License 2.0
5.51k stars 622 forks source link

Add WebRTC ICE servers config #824

Closed marcovidonis closed 1 year ago

marcovidonis commented 1 year ago

This PR adds an optional field to the Client config, where the user can specify a list of ICE Server URLs that will be passed to Pion as part of the WebRTC config when creating a new WebRTC Peer Connection.

There is already an option for this in Pion, this PR exposes it to the torrent client:

ICEServers defines a slice describing servers available to be used by ICE, such as STUN and TURN servers.

anacrolix commented 1 year ago

@marcovidonis just following up, do you still want to get this in?

marcovidonis commented 1 year ago

Sorry for the long absence @anacrolix! Yes, I plan on picking this up next week it that's alright.

anacrolix commented 1 year ago

Cheers