aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools/peertube-auth.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-01-20 09:33:49 +0100
committerChocobozzz <me@florianbigard.com>2022-01-20 09:33:49 +0100
commit4abc7b053ae6f3f5499c27a71d464f7f389711e9 (patch)
treee4ab069d44000978876459a0a75c518140462b61 /server/tools/peertube-auth.ts
parentd511df28906f84c7d25ecb24e41515ed549ff276 (diff)
downloadPeerTube-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.ts4
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
53program 53program
@@ -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)