Skip to content

Commit d8950fb

Browse files
committed
fix: use nine.testrun.org as a default STUN server
1 parent ba2e573 commit d8950fb

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/calls.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,9 +589,15 @@ pub(crate) async fn create_ice_servers_from_metadata(
589589

590590
/// Creates JSON with ICE servers when no TURN servers are known.
591591
pub(crate) async fn create_fallback_ice_servers(context: &Context) -> Result<String> {
592-
// Public STUN server from https://stunprotocol.org/,
593-
// an open source STUN server.
594-
let hostname = "stunserver2025.stunprotocol.org";
592+
// Do not use public STUN server from https://stunprotocol.org/.
593+
// It changes the hostname every year
594+
// (e.g. stunserver2025.stunprotocol.org
595+
// which was previously stunserver2024.stunprotocol.org)
596+
// because of bandwidth costs:
597+
// <https://github.com/jselbie/stunserver/issues/50>
598+
599+
// We use nine.testrun.org for a default STUN server.
600+
let hostname = "nine.testrun.org";
595601

596602
// Do not use cache because there is no TLS.
597603
let load_cache = false;

0 commit comments

Comments
 (0)