aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-09 14:51:28 +0200
committerChocobozzz <me@florianbigard.com>2021-04-09 15:17:43 +0200
commit22820226e54dee61287666a178df2176fafb202a (patch)
tree3fce30315da83eda4b4f96064ad2703202d0d0f5 /server/helpers
parent023edc8a54a58d15f8d4f00d7f76e0074d0d3a81 (diff)
downloadPeerTube-22820226e54dee61287666a178df2176fafb202a.tar.gz
PeerTube-22820226e54dee61287666a178df2176fafb202a.tar.zst
PeerTube-22820226e54dee61287666a178df2176fafb202a.zip
Add server plugin helpers
Diffstat (limited to 'server/helpers')
-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 = ''