]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/signup.ts
emit more specific status codes on video upload (#3423)
[github/Chocobozzz/PeerTube.git] / server / helpers / signup.ts
index 7c73f7c5c02efcd8358a13bcef70a670e6c80baa..d34ff2db5e30287889804dd224e0be5f32343de1 100644 (file)
@@ -21,7 +21,7 @@ async function isSignupAllowed (): Promise<{ allowed: boolean, errorMessage?: st
 
 function isSignupAllowedForCurrentIP (ip: string) {
   const addr = ipaddr.parse(ip)
-  let excludeList = [ 'blacklist' ]
+  const excludeList = [ 'blacklist' ]
   let matched = ''
 
   // if there is a valid, non-empty whitelist, we exclude all unknown adresses too