1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Fix peertube tools auth

This commit is contained in:
Chocobozzz 2022-01-20 09:33:49 +01:00
parent d511df2890
commit 4abc7b053a
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 34 additions and 25 deletions

View file

@ -47,7 +47,7 @@ function stripExtraneousFromPeerTubeUrl (url: string) {
? url.indexOf('/', 8)
: url.length
return url.substr(0, urlLength)
return url.substring(0, urlLength)
}
program
@ -89,7 +89,7 @@ program
// Check credentials
try {
// Strip out everything after the domain:port.
// @see https://github.com/Chocobozzz/PeerTube/issues/3520
// See https://github.com/Chocobozzz/PeerTube/issues/3520
result.url = stripExtraneousFromPeerTubeUrl(result.url)
const server = buildServer(result.url)