mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 20:15:41 +01:00
add cookie. add city database
This commit is contained in:
parent
5a8464e4e0
commit
63531f8753
3 changed files with 9 additions and 4 deletions
|
|
@ -1,3 +1,4 @@
|
|||
/* eslint-disable no-console */
|
||||
const { Resolver } = require('dns').promises;
|
||||
import isbot from 'isbot';
|
||||
import ipaddr from 'ipaddr.js';
|
||||
|
|
@ -38,6 +39,7 @@ export default async (req, res) => {
|
|||
const clientIp = getIpAddress(req);
|
||||
|
||||
const blocked = ips.find(ip => {
|
||||
console.log('collect.js', ip, clientIp);
|
||||
if (ip === clientIp) return true;
|
||||
|
||||
// CIDR notation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue