Skip to content

Commit

Permalink
trickle-ice: Allow stuns: URIs
Browse files Browse the repository at this point in the history
  • Loading branch information
rhansen committed Apr 6, 2022
1 parent 91f7b01 commit 8390e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/peerconnection/trickle-ice/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function selectServer(event) {

function addServer() {
const scheme = urlInput.value.split(':')[0];
if (scheme !== 'stun' && scheme !== 'turn' && scheme !== 'turns') {
if (!['stun', 'stuns', 'turn', 'turns'].includes(scheme)) {
alert(`URI scheme ${scheme} is not valid`);
return;
}
Expand Down

0 comments on commit 8390e4a

Please sign in to comment.