mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Fix signup and import
This commit is contained in:
parent
71ba1ead4f
commit
7243393272
2 changed files with 3 additions and 2 deletions
|
@ -38,7 +38,7 @@ export function isSignupAllowedForCurrentIP (ip: string) {
|
|||
let matched = ''
|
||||
|
||||
// if there is a valid, non-empty whitelist, we exclude all unknown addresses too
|
||||
if (CONFIG.SIGNUP.FILTERS.CIDR.WHITELIST.filter(cidr => isIPV4Cidr(cidr) || isIPV6Cidr(cidr))) {
|
||||
if (CONFIG.SIGNUP.FILTERS.CIDR.WHITELIST.some(cidr => isIPV4Cidr(cidr) || isIPV6Cidr(cidr))) {
|
||||
excludeList.push('unknown')
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue