network: increase maxelem of the ipsets
This commit is contained in:
@@ -92,7 +92,7 @@ async function setBlocklist(blocklist, auditSource) {
|
||||
++count;
|
||||
}
|
||||
|
||||
if (count >= 65536) throw new BoxError(BoxError.CONFLICT, 'Blocklist is too large. Max 65536 entries are allowed'); // https://ipset.netfilter.org/ipset.man.html (maxelem)
|
||||
if (count >= 262144) throw new BoxError(BoxError.CONFLICT, 'Blocklist is too large. Max 262144 entries are allowed'); // see the cloudron-firewall.sh
|
||||
if (constants.DEMO) throw new BoxError(BoxError.CONFLICT, 'Not allowed in demo mode');
|
||||
|
||||
// store in blob since the value field is TEXT and has 16kb size limit
|
||||
|
||||
Reference in New Issue
Block a user