Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
container-manager
Commits
62a80cee
Commit
62a80cee
authored
Sep 27, 2018
by
Mohamed, Fawzi Roberto (fawzi)
Browse files
fix sessionSha
parent
08ef9d22
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/components.js
View file @
62a80cee
...
...
@@ -164,11 +164,12 @@ function namespaceTemplate(name, next) {
/// returns a short session ID from a long session id
function
shortSession
(
sessionID
)
{
const
hash
=
crypto
.
createHash
(
'
sha512
'
);
hash
.
update
(
req
.
sessionID
)
hash
.
update
(
sessionID
)
// lowercase base32 would be better...
return
hash
.
digest
(
'
hex
'
).
slice
(
0
,
20
).
toLowerCase
()
}
/// returns the name of the pod for the given replacements
function
podNameForRepl
(
repl
)
{
const
imageType
=
cconfig
.
image
.
imageType
...
...
Write
Preview
Supports
Markdown
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