Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
galene
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
galene
Commits
8aaa6d14
Commit
8aaa6d14
authored
Mar 23, 2022
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Obey forceRelay for file transfers.
parent
55ae4a68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
static/galene.js
static/galene.js
+3
-3
No files found.
static/galene.js
View file @
8aaa6d14
...
...
@@ -2537,7 +2537,7 @@ async function getFile(f) {
if
(
f
.
pc
)
throw
new
Error
(
"
Download already in progress
"
);
setFileStatus
(
f
,
'
Connecting...
'
,
true
);
let
pc
=
new
RTCPeerConnection
(
serverConnection
.
rtcConfiguration
);
let
pc
=
new
RTCPeerConnection
(
serverConnection
.
getRTCConfiguration
()
);
if
(
!
pc
)
throw
new
Error
(
"
Couldn't create peer connection
"
);
f
.
pc
=
pc
;
...
...
@@ -2607,7 +2607,7 @@ async function sendOfferedFile(f, sdp) {
throw
new
Error
(
'
Transfer already in progress
'
);
setFileStatus
(
f
,
'
Negotiating...
'
,
true
);
let
pc
=
new
RTCPeerConnection
(
serverConnection
.
rtcConfiguration
);
let
pc
=
new
RTCPeerConnection
(
serverConnection
.
getRTCConfiguration
()
);
if
(
!
pc
)
throw
new
Error
(
"
Couldn't create peer connection
"
);
f
.
pc
=
pc
;
...
...
@@ -3527,7 +3527,7 @@ commands.sendfile = {
async
function
relayTest
()
{
if
(
!
serverConnection
)
throw
new
Error
(
'
not connected
'
);
let
conf
=
Object
.
assign
({},
serverConnection
.
rtcConfiguration
);
let
conf
=
Object
.
assign
({},
serverConnection
.
getRTCConfiguration
()
);
conf
.
iceTransportPolicy
=
'
relay
'
;
let
pc1
=
new
RTCPeerConnection
(
conf
);
let
pc2
=
new
RTCPeerConnection
(
conf
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment