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:
parent
d511df2890
commit
4abc7b053a
3 changed files with 34 additions and 25 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue