Disable usage of STUN server (it should not be needed for local)

This commit is contained in:
MK3S+ Printer 2022-10-10 20:27:22 +02:00
parent 57fb09fbf1
commit e509c328f1
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@
sdpSemantics: 'unified-plan' sdpSemantics: 'unified-plan'
}; };
if (!document.getElementById('use-stun') || document.getElementById('use-stun').checked) { if (document.getElementById('use-stun') && document.getElementById('use-stun').checked) {
config.iceServers = [{urls: ['stun:stun.l.google.com:19302']}]; config.iceServers = [{urls: ['stun:stun.l.google.com:19302']}];
} }

View File

@ -33,7 +33,7 @@ static const auto webrtc_client_lock_timeout = 3 * 1000ms;
static const auto webrtc_client_max_json_body = 10 * 1024; static const auto webrtc_client_max_json_body = 10 * 1024;
static const auto webrtc_client_video_payload_type = 102; // H264 static const auto webrtc_client_video_payload_type = 102; // H264
static const rtc::Configuration webrtc_configuration = { static const rtc::Configuration webrtc_configuration = {
.iceServers = { rtc::IceServer("stun:stun.l.google.com:19302") }, // .iceServers = { rtc::IceServer("stun:stun.l.google.com:19302") },
.disableAutoNegotiation = true .disableAutoNegotiation = true
}; };