]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/signup.ts
Add auth header in plugins guide
[github/Chocobozzz/PeerTube.git] / server / helpers / signup.ts
index d34ff2db5e30287889804dd224e0be5f32343de1..ed872539b194ad148cf8b4adce3927480f0a4540 100644 (file)
@@ -20,6 +20,8 @@ async function isSignupAllowed (): Promise<{ allowed: boolean, errorMessage?: st
 }
 
 function isSignupAllowedForCurrentIP (ip: string) {
+  if (!ip) return false
+
   const addr = ipaddr.parse(ip)
   const excludeList = [ 'blacklist' ]
   let matched = ''