diff options
author | Chocobozzz <me@florianbigard.com> | 2022-01-20 09:33:49 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-01-20 09:33:49 +0100 |
commit | 4abc7b053ae6f3f5499c27a71d464f7f389711e9 (patch) | |
tree | e4ab069d44000978876459a0a75c518140462b61 /server/tools/peertube-auth.ts | |
parent | d511df28906f84c7d25ecb24e41515ed549ff276 (diff) | |
download | PeerTube-4abc7b053ae6f3f5499c27a71d464f7f389711e9.tar.gz PeerTube-4abc7b053ae6f3f5499c27a71d464f7f389711e9.tar.zst PeerTube-4abc7b053ae6f3f5499c27a71d464f7f389711e9.zip |
Fix peertube tools auth
Diffstat (limited to 'server/tools/peertube-auth.ts')
-rw-r--r-- | server/tools/peertube-auth.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tools/peertube-auth.ts b/server/tools/peertube-auth.ts index f8ac8b2ab..051156d66 100644 --- a/server/tools/peertube-auth.ts +++ b/server/tools/peertube-auth.ts | |||
@@ -47,7 +47,7 @@ function stripExtraneousFromPeerTubeUrl (url: string) { | |||
47 | ? url.indexOf('/', 8) | 47 | ? url.indexOf('/', 8) |
48 | : url.length | 48 | : url.length |
49 | 49 | ||
50 | return url.substr(0, urlLength) | 50 | return url.substring(0, urlLength) |
51 | } | 51 | } |
52 | 52 | ||
53 | program | 53 | program |
@@ -89,7 +89,7 @@ program | |||
89 | // Check credentials | 89 | // Check credentials |
90 | try { | 90 | try { |
91 | // Strip out everything after the domain:port. | 91 | // Strip out everything after the domain:port. |
92 | // @see https://github.com/Chocobozzz/PeerTube/issues/3520 | 92 | // See https://github.com/Chocobozzz/PeerTube/issues/3520 |
93 | result.url = stripExtraneousFromPeerTubeUrl(result.url) | 93 | result.url = stripExtraneousFromPeerTubeUrl(result.url) |
94 | 94 | ||
95 | const server = buildServer(result.url) | 95 | const server = buildServer(result.url) |