Skip to content

Commit

Permalink
[mirotalk] - fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jul 23, 2022
1 parent bdab17f commit c40f5a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion public/views/testStunTurn.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ <h1>Test Stun/Turn Servers</h1>

<hr />

<p id="ip"></p>
<p id="stun">馃敶 The STUN server is NOT reachable!</p>
<p id="turn">馃敶 The TURN server is NOT reachable!</p>
<p id="err"></p>
Expand All @@ -42,6 +43,7 @@ <h1>Test Stun/Turn Servers</h1>
>

<script>
const IP = document.getElementById('ip');
const Stun = document.getElementById('stun');
const Turn = document.getElementById('turn');
const Err = document.getElementById('err');
Expand Down Expand Up @@ -75,7 +77,8 @@ <h1>Test Stun/Turn Servers</h1>
if (e.candidate.type == 'srflx' || e.candidate.candidate.includes('srflx')) {
let ip = /\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/;
let address = e.candidate.address ? e.candidate.address : e.candidate.candidate.match(ip);
Stun.innerHTML = '馃煝 The STUN server is reachable! Your Public IP Address is ' + address;
IP.innerHTML = '馃煝 Your Public IP Address is ' + address;
Stun.innerHTML = '馃煝 The STUN server is reachable!';
}

// If a relay candidate was found, notify that the TURN server works!
Expand Down

0 comments on commit c40f5a9

Please sign in to comment.