diff --git a/meshcentral-config-schema.json b/meshcentral-config-schema.json index 76c53345..97f51580 100644 --- a/meshcentral-config-schema.json +++ b/meshcentral-config-schema.json @@ -767,7 +767,7 @@ }, "webrtcConfig": { "type": "object", - "description": "The STUN servers used for WebRTC, if not specified the Google and Mozilla servers and used when the server is not in LAN mode.", + "description": "The STUN/TURN servers used for WebRTC, if not specified the Google and Cloudflare STUN servers are used when the server is not in LAN mode.", "properties": { "iceServers": { "type": "array", @@ -776,7 +776,8 @@ "type": "object", "properties": { "urls": { - "type": "string" + "type": "string", + "description": "STUN/TURN URLs, examples are stun:stun3.l.google.com:19302 or turn:openrelay.metered.ca:443" } }, "required": [ diff --git a/sample-config-advanced.json b/sample-config-advanced.json index 771de459..c3712a93 100644 --- a/sample-config-advanced.json +++ b/sample-config-advanced.json @@ -112,7 +112,7 @@ "_syslogtcp": "localhost:514", "_webrtcConfig": { "iceServers": [ - { "urls": "stun:stun.services.mozilla.com" }, + { "urls": "stun:stun.cloudflare.com:3478" }, { "urls": "stun:stun.l.google.com:19302" } ] }, diff --git a/views/default.handlebars b/views/default.handlebars index b4be70b2..5e827945 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -9219,7 +9219,7 @@ } else if ((data.action == 'present') && (webRtcDesktop == null)) { // Setup WebRTC channel webRtcDesktop = { platform: data.platform }; - var configuration = null; //{ "iceServers": [ { 'urls': 'stun:stun.services.mozilla.com' }, { 'urls': 'stun:stun.l.google.com:19302' } ] }; + var configuration = null; //{ "iceServers": [ { 'urls': 'stun:stun.cloudflare.com:3478' }, { 'urls': 'stun:stun.l.google.com:19302' } ] }; if (typeof RTCPeerConnection !== 'undefined') { webRtcDesktop.webrtc = new RTCPeerConnection(configuration); } else if (typeof webkitRTCPeerConnection !== 'undefined') { webRtcDesktop.webrtc = new webkitRTCPeerConnection(configuration); } diff --git a/views/sharing.handlebars b/views/sharing.handlebars index 115cd520..0b0987f4 100644 --- a/views/sharing.handlebars +++ b/views/sharing.handlebars @@ -539,7 +539,7 @@ } else if ((data.action == 'present') && (webRtcDesktop == null)) { // Setup WebRTC channel webRtcDesktop = { platform: data.platform }; - var configuration = null; //{ "iceServers": [ { 'urls': 'stun:stun.services.mozilla.com' }, { 'urls': 'stun:stun.l.google.com:19302' } ] }; + var configuration = null; //{ "iceServers": [ { 'urls': 'stun:stun.cloudflare.com:3478' }, { 'urls': 'stun:stun.l.google.com:19302' } ] }; if (typeof RTCPeerConnection !== 'undefined') { webRtcDesktop.webrtc = new RTCPeerConnection(configuration); } else if (typeof webkitRTCPeerConnection !== 'undefined') { webRtcDesktop.webrtc = new webkitRTCPeerConnection(configuration); }