mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-21 15:26:17 -04:00
Change STUN server
This commit is contained in:
parent
c04cdad7db
commit
8f5c0efd3f
1 changed files with 4 additions and 8 deletions
|
@ -466,7 +466,7 @@ class FileDigester {
|
||||||
this.progress = this._bytesReceived / this._size;
|
this.progress = this._bytesReceived / this._size;
|
||||||
if (this._bytesReceived < this._size) return;
|
if (this._bytesReceived < this._size) return;
|
||||||
// we are done
|
// we are done
|
||||||
let received = new Blob(this._buffer, { type: this._mime });
|
let received = new Blob(this._buffer, { type: this._mime });
|
||||||
let url = URL.createObjectURL(received);
|
let url = URL.createObjectURL(received);
|
||||||
this._callback({
|
this._callback({
|
||||||
name: this._name,
|
name: this._name,
|
||||||
|
@ -496,12 +496,8 @@ RTCPeer.config = {
|
||||||
}, {
|
}, {
|
||||||
urls: 'stun:stun.l.google.com:19302'
|
urls: 'stun:stun.l.google.com:19302'
|
||||||
}, {
|
}, {
|
||||||
urls: 'turn:turn.bistri.com:80',
|
url: 'turn:192.158.29.39:3478?transport=tcp',
|
||||||
credential: 'homeo',
|
credential: 'JZEOEt2V3Qb0y27GRntt2u2PAYA=',
|
||||||
username: 'homeo'
|
username: '28224511:1379330808'
|
||||||
}, {
|
|
||||||
urls: 'turn:turn.anyfirewall.com:443?transport=tcp',
|
|
||||||
credential: 'webrtc',
|
|
||||||
username: 'webrtc'
|
|
||||||
}]
|
}]
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue