From 92e3d1465eb17dd892d1b5a933931521cd5b719d Mon Sep 17 00:00:00 2001 From: David Rowe Date: Wed, 27 Oct 2021 21:41:12 +1300 Subject: [PATCH] Reduce the number of ICE servers used --- libraries/networking/src/webrtc/WebRTCDataChannels.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/networking/src/webrtc/WebRTCDataChannels.cpp b/libraries/networking/src/webrtc/WebRTCDataChannels.cpp index 92b667e18f..0d069d7171 100644 --- a/libraries/networking/src/webrtc/WebRTCDataChannels.cpp +++ b/libraries/networking/src/webrtc/WebRTCDataChannels.cpp @@ -21,9 +21,9 @@ // - https://webrtc.googlesource.com/src/+/master/api/peer_connection_interface.h // FIXME: stun:ice.vircadia.com:7337 doesn't work for WebRTC. -const std::list ICE_SERVER_URIS = { +// Firefox warns: "WebRTC: Using more than two STUN/TURN servers slows down discovery" +const std::list ICE_SERVER_URIS = { "stun:stun1.l.google.com:19302", - "stun:stun4.l.google.com:19302", "stun:stun.schlund.de" }; const int MAX_WEBRTC_BUFFER_SIZE = 16777216; // 16MB