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'
};
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']}];
}