Add IPV4 stun

This commit is contained in:
giongto35 2019-05-28 03:00:25 +08:00
parent 8ddb1832a8
commit c0404f5758

10
static/js/ws.js vendored
View file

@ -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"