Skip to content

Commit

Permalink
Bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jason5ng32 committed Dec 18, 2023
1 parent fb8cec4 commit 09521d6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions public/res/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,10 +464,7 @@ new Vue({
if (event.candidate) {
candidateReceived = true;
const candidate = event.candidate.candidate;
const ipMatch =
/(\b(?:[0-9a-f]{1,4}:){7}[0-9a-f]{1,4}\b)|([0-9]{1,3}(\.[0-9]{1,3}){3})/i.exec(
candidate
);
const ipMatch = /([0-9a-f]{1,4}(:[0-9a-f]{1,4}){7}|[0-9a-f]{0,4}(:[0-9a-f]{1,4}){0,6}::[0-9a-f]{0,4}|::[0-9a-f]{1,4}(:[0-9a-f]{1,4}){0,6}|[0-9]{1,3}(\.[0-9]{1,3}){3})/i.exec(candidate);
if (ipMatch) {
stun.ip = ipMatch[0];
pc.close();
Expand Down

0 comments on commit 09521d6

Please sign in to comment.