diff --git a/index.js b/index.js index f7a0124..49bfdbf 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ const log = require('./scripts/log.js'); const COOLDOWN_MS = 2000; const REPORTED_IP_COOLDOWN_MS = 7 * 60 * 60 * 1000; const MAX_URL_LENGTH = 2000; -const MAIN_DELAY = process.env.NODE_ENV === 'production' ? 2 * 60 * 60 * 1000 : 10 * 1000; +const MAIN_DELAY = process.env.NODE_ENV === 'production' ? 4 * 60 * 60 * 1000 : 8 * 1000; const fetchBlockedIPs = async () => { try { diff --git a/scripts/payload.js b/scripts/payload.js index 8090328..44d7fda 100644 --- a/scripts/payload.js +++ b/scripts/payload.js @@ -3,7 +3,7 @@ const query = `query ListFirewallEvents($zoneTag: string, $filter: FirewallEvent zones(filter: { zoneTag: $zoneTag }) { firewallEventsAdaptive( filter: $filter - limit: 200 + limit: 500 orderBy: [datetime_DESC] ) { action