diff --git a/api/api.js b/api/api.js index 0103abce..76321c33 100644 --- a/api/api.js +++ b/api/api.js @@ -274,6 +274,9 @@ if (fs.existsSync(geoipWhitelistFile)) { geoipWhitelist, ); assert(typeof geoipWhitelist === 'object'); + if (geoipWhitelist === null) { + geoipWhitelist = {}; + } } catch (err) { console.log(`Failed to process ${geoipWhitelistFile}:`, err); }