aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/signup.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/signup.ts')
-rw-r--r--server/helpers/signup.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/helpers/signup.ts b/server/helpers/signup.ts
index d34ff2db5..ed872539b 100644
--- a/server/helpers/signup.ts
+++ b/server/helpers/signup.ts
@@ -20,6 +20,8 @@ async function isSignupAllowed (): Promise<{ allowed: boolean, errorMessage?: st
20} 20}
21 21
22function isSignupAllowedForCurrentIP (ip: string) { 22function isSignupAllowedForCurrentIP (ip: string) {
23 if (!ip) return false
24
23 const addr = ipaddr.parse(ip) 25 const addr = ipaddr.parse(ip)
24 const excludeList = [ 'blacklist' ] 26 const excludeList = [ 'blacklist' ]
25 let matched = '' 27 let matched = ''