Add stun list

This commit is contained in:
giongto35 2019-05-24 23:24:00 +08:00
parent 9ce2b025fa
commit 06deabfb57
2 changed files with 2 additions and 2 deletions

2
static/js/ws.js vendored
View file

@ -85,7 +85,7 @@ function sendPing() {
function startWebRTC() {
// webrtc
pc = new RTCPeerConnection({iceServers: [{urls: 'stun:stun.l.google.com:19302'}]})
pc = new RTCPeerConnection({iceServers: [{urls: ['stun:159.65.141.209:3478', 'stun:stun.l.google.com:19302', 'stun:stun1.l.google.com:19302']}]})
// input channel, ordered + reliable, id 0
inputChannel = pc.createDataChannel('a', {

View file

@ -16,7 +16,7 @@ import (
uuid "github.com/satori/go.uuid"
)
var webrtcconfig = webrtc.Configuration{ICEServers: []webrtc.ICEServer{{URLs: []string{"stun:stun.l.google.com:19302"}}}}
var webrtcconfig = webrtc.Configuration{ICEServers: []webrtc.ICEServer{{URLs: []string{"stun:159.65.141.209:3478", "stun:stun.l.google.com:19302", "stun:stun1.l.google.com:19302"}}}}
// Allows compressing offer/answer to bypass terminal input limits.
const compress = false