From c0404f5758f4a336fa34c4341495be8d813ba034 Mon Sep 17 00:00:00 2001 From: giongto35 Date: Tue, 28 May 2019 03:00:25 +0800 Subject: [PATCH] Add IPV4 stun --- static/js/ws.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/static/js/ws.js b/static/js/ws.js index 2dbd43e2..e2b6c48e 100644 --- a/static/js/ws.js +++ b/static/js/ws.js @@ -97,10 +97,12 @@ function sendPing() { function startWebRTC() { // webrtc pc = new RTCPeerConnection({iceServers: [{ - urls: 'stun:stun-turn.webgame2d.com:3478', - username: "root", - credential: "root" - }, { + urls: 'stun:stun-turn.webgame2d.com:3478' + }, + { + urls: 'stun:159.65.141.209:3478' + }, + { urls: "turn:stun-turn.webgame2d.com:3478", username: "root", credential: "root"