Skip to content

Commit 8aaa6d1

Browse files
committed
Obey forceRelay for file transfers.
1 parent 55ae4a6 commit 8aaa6d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

static/galene.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2537,7 +2537,7 @@ async function getFile(f) {
25372537
if(f.pc)
25382538
throw new Error("Download already in progress");
25392539
setFileStatus(f, 'Connecting...', true);
2540-
let pc = new RTCPeerConnection(serverConnection.rtcConfiguration);
2540+
let pc = new RTCPeerConnection(serverConnection.getRTCConfiguration());
25412541
if(!pc)
25422542
throw new Error("Couldn't create peer connection");
25432543
f.pc = pc;
@@ -2607,7 +2607,7 @@ async function sendOfferedFile(f, sdp) {
26072607
throw new Error('Transfer already in progress');
26082608

26092609
setFileStatus(f, 'Negotiating...', true);
2610-
let pc = new RTCPeerConnection(serverConnection.rtcConfiguration);
2610+
let pc = new RTCPeerConnection(serverConnection.getRTCConfiguration());
26112611
if(!pc)
26122612
throw new Error("Couldn't create peer connection");
26132613
f.pc = pc;
@@ -3527,7 +3527,7 @@ commands.sendfile = {
35273527
async function relayTest() {
35283528
if(!serverConnection)
35293529
throw new Error('not connected');
3530-
let conf = Object.assign({}, serverConnection.rtcConfiguration);
3530+
let conf = Object.assign({}, serverConnection.getRTCConfiguration());
35313531
conf.iceTransportPolicy = 'relay';
35323532
let pc1 = new RTCPeerConnection(conf);
35333533
let pc2 = new RTCPeerConnection(conf);

0 commit comments

Comments
 (0)