Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
signalbuddy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sweng-group-15
signalbuddy
Commits
216be42b
Commit
216be42b
authored
5 years ago
by
Moritz Langenstein
Browse files
Options
Downloads
Patches
Plain Diff
(ml5717) Fixed TURN server username for UUIDs
parent
1e44fad4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dist/sockets.js
+1
-1
1 addition, 1 deletion
dist/sockets.js
src/sockets.js
+1
-1
1 addition, 1 deletion
src/sockets.js
with
2 additions
and
2 deletions
dist/sockets.js
+
1
−
1
View file @
216be42b
...
...
@@ -144,7 +144,7 @@ function signalbuddy(server, config) {
function
getTurnServers
(
username
)
{
// See https://github.com/coturn/coturn/wiki/turnserver#turn-rest-api for details
var
acting_ice_turn_username
=
Math
.
floor
(
Date
.
now
()
/
1000
)
+
config
.
ice
.
turn
.
timeout
+
"
-
"
+
username
;
var
acting_ice_turn_username
=
Math
.
floor
(
Date
.
now
()
/
1000
)
+
config
.
ice
.
turn
.
timeout
+
"
-
"
+
username
.
replace
(
/-/g
,
""
)
;
var
acting_ice_turn_password
=
_crypto2
.
default
.
createHmac
(
'
sha1
'
,
config
.
ice
.
turn
.
secret
).
update
(
acting_ice_turn_username
).
digest
(
'
base64
'
);
return
[(
0
,
_normalice2
.
default
)(
'
turn:
'
+
acting_ice_turn_username
+
'
:
'
+
acting_ice_turn_password
+
'
@
'
+
config
.
ice
.
host
+
'
:
'
+
config
.
ice
.
port
)];
...
...
This diff is collapsed.
Click to expand it.
src/sockets.js
+
1
−
1
View file @
216be42b
...
...
@@ -126,7 +126,7 @@ function signalbuddy(server, config) {
function
getTurnServers
(
username
)
{
// See https://github.com/coturn/coturn/wiki/turnserver#turn-rest-api for details
const
acting_ice_turn_username
=
(
Math
.
floor
(
Date
.
now
()
/
1000
)
+
config
.
ice
.
turn
.
timeout
)
+
"
-
"
+
username
const
acting_ice_turn_username
=
(
Math
.
floor
(
Date
.
now
()
/
1000
)
+
config
.
ice
.
turn
.
timeout
)
+
"
-
"
+
username
.
replace
(
/-/g
,
""
)
const
acting_ice_turn_password
=
crypto
.
createHmac
(
'
sha1
'
,
config
.
ice
.
turn
.
secret
).
update
(
acting_ice_turn_username
).
digest
(
'
base64
'
)
return
[
normalice
(
`turn:
${
acting_ice_turn_username
}
:
${
acting_ice_turn_password
}
@
${
config
.
ice
.
host
}
:
${
config
.
ice
.
port
}
`
)]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment